$echo "sqrt 100. ;;" | ocaml -noprompt | tail +12 The output is weird. In fact I just want to skip the banner lines. Both csh and bash cannot get what I really need. Hope some guys using ocaml can shed a light on me. Sincerely!