filtering with sed

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

cat foofile | perl -p -e s/\r$// | next op

YMMV, depending on the evil you need for quoting on/in your script.

Also, there are a few programs like dos2unix that would do that for
you too.

David