Phoenix.pm: Mac/Windows -> Unix line endings

Douglas E. Miles doug.miles at bpxinternet.com
Fri Nov 5 11:12:49 CST 1999


This is a little script that I use to convert Mac/Windows format files
to Unix format:

#!/usr/bin/perl -pi

s/\r\n?/\n/g;

Enjoy!

-- 
For a list of the ways which technology has failed
to improve our quality of life, press 3.



More information about the Phoenix-pm mailing list