in reply to Re: -w more than a warning?
in thread -w more than a warning?

You can also do the following, which is a little easier, IMHO.
vi nastyDOSfile.pl :set ff=unix :wq
'ff' is a synonym for 'fileformat'. I imagine there's some useful little command line utility that could process all the files in a directory, but I'm not THAT much of a Unix hack.

--Chris

e-mail jcwren

Replies are listed 'Best First'.
(tye)Re: -w more than a warning?
by tye (Sage) on Oct 24, 2000 at 18:31 UTC

    You mean Perl? (:

    perl -pi.dos -e 's/\r//'

    Doing this under DOS is harder since you have to get the calls to binmode thrown in at the right places. I think you can check the FAQ for more info.

            - tye (but my friends call me "Tye")

      Or, my favorite, just because it looks kind of magical:

      perl -015 -pi.dos -e 'chomp' filename