/usr/bin/awk '{gsub(/\r/,""); print $0; }' $0 will dump the file without ^M on stdout. Just pipe it to a file.
HTH, umberto On Wed, 2002-08-28 at 22:51, Tero P Paananen wrote: > > To convert a windows file into a unix format you can use the > > "dos2unix" command under unix. > > It will get rid of all the ^M caracters that you see under vi. > > Use a text editor on Windows that can save in Unix format. > Practically any advanced text editor can do that. I use > UltraEdit myself. > > -TPP > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Umberto Nicoletti [EMAIL PROTECTED] | Tel. +390415701366 "We'll try to make different mistakes this time." - Larry Wall -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>