[KLUG Members] help with bash script error

Bruce Smith bruce at armintl.com
Mon Sep 12 22:20:44 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
> > > 
> Is there a way to SHOW them in VI though? 

:set all

and look to see what the "fileformat" is set to.

> 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. 

I don't recall if there is a way to display them inline.
If I run across something I'll let you know.

 - BS




More information about the Members mailing list