filtering with sed

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: KevinBuettnerkev@primenet.com
Date:  
Subject: 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