[comp.sys.ibm.pc] THE END of Text file conversion between UNIX and MSDOS

noworol@eecg.toronto.edu (Mark Noworolski) (02/11/89)

Thanks to all those who posted and mailed in reply to my question.
To those considering it. Please don't! 60 messages in the first 2 days
is quite enough.

Essentially the quickest and simplest method seems to be to write a shell
script containing:
sed 's/$/^M/g' $* (use ^V^M in vi to make the ^M)

It is also true that many modem programs when transferring in text mode will
do the conversion automatically. But that won't work for arc'ed files.

Also many editors will fix things up automatically- all you do is read the
file in and resave it (eg pcjove , vi ) and some others.

If you have pc gawk you can use:
gawk "{print $0}" file1 > file.out

Also there is a program called undos which will do this AND TAKE CARE
of wildcard expansion. I have gotten a copy and if sufficient demand arises
I will post it. I believe it is available on simtel20. I also believe it's
fairly common so maybe y'all could look locally before requesting a mailing.

If you do request a mailing- I'll put that on hold for a week to decide if
there is sufficient demand or not.

-- 
There's a really fine line between stupid and clever.

	Nigel - Lead Guitar, Spinal Tap

noworol@ecf.toronto.edu