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

Re: some problem in scripting



On 6/13/07, Mike McClain <mike.mcclain@nowhere.net> wrote:
On 13 Jun 2007, L.V.Gandhi wrote:
>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?
What you see as ^M is the carriage return, CR = \015 = \0x0d = "\r".
Look for fromdos or roll your own with `tr -d "\015"`.
HTH,
Mike

Thanks Mike.


--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042
Reply to: