Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 062009
 

Convert DOS/MAC to UNIX text file format converter

Answer:

Sometimes if a file was edited on Windows, and you might find strange characters "^M" occur at the end of every line when you open in vim under Linux, you can use the dos2unix command to reformat the file format to remove them.

E.g.

# dos2unix input.pl output.pl

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>