[techtalk] dos to unix
Allen Heinecke
puck at cx449026-a.mesa1.az.home.com
Sun Sep 10 20:50:24 EST 2000
perl -pi.old -e 's/\r//g' filename
don't ask where that came from... I just know it will work
-Lone
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GED/J d-- s: a20? C+++(++++) L+++ P+++(++++) e N o+ w--- O- M- V- PS+ PE Y
PGP++ t+ 5- X++ R++ !tv b+++ DI++ D+++ e h-- r+ y+
------END GEEK CODE BLOCK------
On Sun, 10 Sep 2000, Nancy Corbett wrote:
>
> I know I've seen someone use a command something like dostounix to convert
> text docs written with something like notepad, etc into plain ol ascii...
>
> I have a bunch of perl scripts I just inherited and they have a ^M at the
> end of every line. I know I could just do a command in vi to get rid of
> them, but I've ben straining my brain (not a difficult thing to do
> today) to remember that dostounix thingie. If it is just dostounix, it
> seems that my shell acct with my ISP doesn't know what that is. Grrr.
>
> TIA,
> Nancy
>
>
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk
>
More information about the Techtalk
mailing list