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

Re: error in script



On Fri, Sep 5, 2008 at 3:29 PM, Jochen Schulz <ml@well-adjusted.de> wrote:
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.

Thanks you very for your time and helping nature.
--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042

Reply to: