[KLUG Members] help with bash script error
yvh11a
yvh11a at gmail.com
Mon Sep 12 20:33:39 EDT 2005
>
>
> Subject: Re: [KLUG Members] help with bash script error
> > Thanks everyone, but I got it. I opened the file in ee instead of vi and
> > I saw all these ^M at the end of each line. I took them out and
> > viola...things work. I wonder what I would need to do to get vi to print
> > these.
>
> You can get rid of them in vi with
>
> :set fileformat=unix
>
> and check the file format (dos/unix) with
>
> :set all
>
> - BS
The ^M's are the MSDOS newline character, if I remember right. You can also
use the dos2unix command to convert the file to unix format after you've
saved it. If you've got some massively long file, it might be faster than
manually going through and deleting every single instance of ^M.
Steve V.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.kalamazoolinux.org/pipermail/members/attachments/20050912/d9d161b4/attachment.html
More information about the Members
mailing list