filtering with sed

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Kevin Buettner
Datum:  
Betreff: filtering with sed
On Nov 29, 2:07pm, Don Harrop wrote:

> I've got an output file where each line ends with a ^M. I'm trying to get
> sed to filter out the ^M but cat doesn't print it. I need to encorporate
> the solution into a script file so search and replace with a text editor
> wont do the trick either.. Any ideas?


Use Perl.

perl -pe 's/\r//' <infile >outfile

Kevin