cat input_filename | sed 's/r//' > output_filename
God bless sed, because I had this problem couple of days ago with ^M!
P.s.: Welcome back to blogosphere, Lev
Also, if you happen to be editing the file in Vim, this is how you can remove the ^M:
:%s/^M//g
But use Ctrl-V Ctrl-M to generate the ^M string, not plain text ^M.
AndreyV Thanks. You have got a nice domain name
Leonid Mamchenkov
Name (required)
Mail (will not be published) (required)
Website
Howdy!
God bless sed, because I had this problem couple of days ago with ^M!
P.s.: Welcome back to blogosphere, Lev
Also, if you happen to be editing the file in Vim, this is how you can remove the ^M:
:%s/^M//g
But use Ctrl-V Ctrl-M to generate the ^M string, not plain text ^M.
AndreyV Thanks. You have got a nice domain name
Leonid Mamchenkov