[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error in script



L.V.Gandhi:
> On Fri, Sep 5, 2008 at 2:42 PM, Jochen Schulz <ml@well-adjusted.de> 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

It doesn't matter much, it's just makes matters a little more
complicated than necessary.

J.
-- 
I wish I looked more like a successful person even though I'm a loser.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: