On Sat, 2 Mar 2002, Goldwyn Rodrigues wrote:

> How do i convert DOS files to Unix files after porting from the
> Windows partition.

dos2unix works well.  if you don't have it, these methods are useful:

1. open the file in pico.  do Ctrl+O.  close the file
2. cat file | sed -e 's/^M//g' > newfile
3. perl -pi -e 's/\r//g' list of files

to put that ^M there, type Ctrl+V Ctrl+M

-- 
"Old age and treachery will beat youth and skill every time."
-- a coffee cup

_______________________________________________
http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to