Am 2007-06-13 13:58:18, schrieb L.V.Gandhi:
> I am using this script to find high/low
> #!/bin/bash
> rm -f highs
> rm -f lows
> touch lows
> for line in $(cat temp.csv)

Replacement:   for line in $(cat temp.csv |dos2unix)

> I get highs file. I don't get lows file. I feel there is some unprintable at
> the end of csv file. Hence matching fails.
> I added one more field and found that ^M in the LO_52_WK field before comma.
> I tried sed -e 's/M$//'. this didn't help.
> Any solutions?

See above.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

Reply via email to