Shell Tips

ID #1061

How do I convert from dos line endings to unix line endings?

An invocation of 'tr' will do what you need:

$ tr -d '\r' < infile > outfie


This simply removes any carriage returns, which are extraneous in a unix environment.

Tags: -

Related entries:

Last update: 2006-10-09 15:01
Author: Dave Steinberg
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 5 out of 5 (4 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry