Newsgroups: comp.sys.ibm.pc Path: utzoo!utgpu!jarvis.csri.toronto.edu!godzilla.eecg.toronto.edu!noworol From: noworol@eecg.toronto.edu (Mark Noworolski) Subject: THE END of Text file conversion between UNIX and MSDOS Message-ID: <89Feb11.123444est.2666@godzilla.eecg.toronto.edu> Summary: a summary Organization: EECG, University of Toronto References: <89Feb9.123853est.2662@godzilla.eecg.toronto.edu> <40970002@hpindda.HP.COM> Date: Sat, 11 Feb 89 12:34:34 EST 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