Gadzookers! (was Re: ^M 's in uploaded text files.)
Mr. Bad Judgment
kohli at gemed
Fri Feb 2 09:15:20 AEST 1990
In article <5622 at udccvax1.acs.udel.EDU>, william at vax1.acs.udel.EDU
(William H. York) wrote:
>I use my PC to write text files in word perfect then I save in
>dos format to upload to our vax. When the file is cat'ed, the
>^M's don't show, but when vi'ing they become real annoying! Is
>there a file I can pipe it through to remove the ^M's or
>perhaps a way vi can be used to remove them?
>
In article <1990Feb1.193031.11699 at iwarp.intel.com> merlyn at iwarp.intel.com
(Randal Schwartz) writes:
<In article <1990Feb1.164704.23581 at athena.mit.edu>, jik at athena (Jonathan I. Kamens) writes:
<| tr -d "\012" < filename > filename.new
<
<Bzzzt. Can't combine that sorta quoting. tr will get '012' as an
<argument, not '\012', so what you wanted was either:
< "\\012"
<or
< '\012'
<
I believe the objective would be better accomplished if '\015'
was used (rather than '\012'), eh?
Jim Kohli
GE Medical Systems
More information about the Comp.unix.questions
mailing list