[Techtalk] real life kewl text-processing and regexps sampleswanted

Kathryn Hogg kjh at flyballdogs.com
Fri Jan 9 20:23:06 EST 2004


Brenda Bell said:
> A command I use a lot is:
>
>     cat dos-file.txt | sed -e '1,$s\^M\\g' >linux-file.txt
>
> But that's because I'm always copying files edited on Windows to
> my Linux box with the wrong format.  Note that the ^M is ctrl-M
> which must be entered on the command line as ctrl-V ctrl-M.

I use dos2unix for those conversions.

-- 
Kathryn
http://womensfootyusa.com


More information about the Techtalk mailing list