Look for dos2unix on your system or Googlize it.
--- Tahir Hashmi (VSE, NCST) http://www.ncst.ernet.in/~tahir tahir AT ncst DOT ernet DOT in __________________________________ We, the rest of humanity, wish GNU luck and Godspeed On Sat, 2 Mar 2002 06:38:45 Goldwyn Rodrigues wrote: >Hi, > >How do i convert DOS files to Unix files after porting from the Windows >partition. >I usually have to port my C code from Windows partition to Linux. Vi works >fine, showing a [dos] in the end. But then when i use some programs like >"indent" all new lines are replaced by ^M which i can neither find in vi >using / nor use the grep command. > >BTW, which one has both CR and LF and which one has only CR as new line >charachters? > >Converting back is simple by opening it in Wordpad and saving again. > >Any links to scripts/or hints on scripts wud be gr8. > >thanx .. > >-- >Goldwyn :o) > >_______________________________________________ >http://mm.ilug-bom.org.in/mailman/listinfo/linuxers > > 2,000,000,000 Web Pages--you only need 1. Save time with My Lycos. http://my.lycos.com _______________________________________________ http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

