On Fri, Sep 05, 2008 at 11:59:46AM +0200, Jochen Schulz <[EMAIL PROTECTED]> was heard to say: > L.V.Gandhi: > > On Fri, Sep 5, 2008 at 2:42 PM, Jochen Schulz <[EMAIL PROTECTED]> wrote: > > > >>> cat ~/stock/flstock.csv |cut -s -d, -f2|sort >> ~/stock/fliquidstocks.txt > >> > >> Useless use of cat. :) > > > > How it can be done more efficiently, please? > > Just pass the filename to cut as an argument: > > cut -s -d, -f2 ~/stock/flstock.csv | sort >> ~/stock/fliquidstocks.txt
Another solution that eliminates this use of "cat" regardless of what program you're running is to use a file redirection: cut -s -d, -f2 < ~/stock/flstock.csv | sort >> ~/stock/fliquidstocks.txt Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]