filtering with sed

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: KevinBuettnerkev@primenet.com
日付:  
題目: 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