[KLUG Members] help with bash script error

Richard Harding rick at ricksweb.info
Mon Sep 12 21:58:45 EDT 2005


On Mon, 2005-09-12 at 21:13 -0400, Bruce Smith wrote:
> >         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
> > 
Is there a way to SHOW them in VI though? The problem I had was that I
didn't know these bad newline characters were there. I guess I'm
wondering if I can add something to my vimrc file that will display them
next time. 

Thanks

Rick



More information about the Members mailing list