Roshan wrote:
cat< foo 2>errorfile
On my system it does redirect to the errorfile. Please also see http://books.google.co.in/books?id=qX3CCAnjSPwC&pg=PA158&lpg=PA158&a...<+foo+2>errorfile&source=bl&ots=o-BohSIkJP&sig=Hv4g5xB1oN803-vaH1CANc_h_Jc&hl=en&ei=KunpTNaGC9TCcff7rIcL&sa=X&oi=book_result&ct=result&resnum=1&ved=0CBUQ6AEwAA#v=onepage&q=cat < foo 2>errorfile&f=false
http://www.beforever.com/bashtut.htm#output
Hope this helps.
sadhu