[lug] Beautify in vi
Holshouser, David
dholshou at ball.com
Fri Mar 30 08:30:37 MST 2001
For unix<->dos file transfers, make sure you switch to ascii mode before you
transfer the file.
This will eliminate all <cr><lf> issues.
> -----Original Message-----
> From: Carlos Hernández López [SMTP:chernanl at banxico.org.mx]
> Sent: Thursday, March 29, 2001 6:07 PM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] Beautify in vi
>
> Something similar happens when you transfer files from linux to win. Have
> you tried with todos?
>
> todos < linuxfile.txt > dosfile.txt and then transfer.
>
>
>
>
>
> John Hernandez wrote:
>
> > He's right indeed. Duh.
> >
> > So, that's <ctrl-v><ctrl-m> between the leaning toothpicks. The literal
> carret (^) in a regex means "at the beginning of a line,"
> > which is not what you want.
> >
> > "Holshouser, David" wrote:
> > >
> > > It's slightly more difficult than that in my experience.
> > > :%s/^v^m//g
> > >
> > > the ^v says don't look at my next keystroke, just trust me.
> > >
> > > > -----Original Message-----
> > > > From: John Hernandez [SMTP:John.Hernandez at noaa.gov]
> > > > Sent: Thursday, March 29, 2001 3:45 PM
> > > > To: lug at lug.boulder.co.us
> > > > Subject: Re: [lug] Beautify in vi
> > > >
> > > > :%s/^M//g
> > > >
> > > > John Starkey wrote:
> > > > >
> > > > > I have several files that I transfered from linux to FreeBSD. On
> the
> > > > > FreeBSD server the command chars are showing up. Mainly ^M. I saw
> that
> > > > > set: beautify is supposed to clean those out. But it isn't and I
> found
> > > > > one doc that says it only does so when reading into a file. I
> tried
> > > > > creating a new file and reading the old one into it. Still no
> luck.
> > > > >
> > > > > Anyone know of something I could do to strip these automatically?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > John
> > > > >
> > > > > _______________________________________________
> > > > > Web Page: http://lug.boulder.co.us
> > > > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > > _______________________________________________
> > > > Web Page: http://lug.boulder.co.us
> > > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > _______________________________________________
> > > Web Page: http://lug.boulder.co.us
> > > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list