[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ascii file conversion Mac -> UNIX



haek@hem.passagen.se (Hans Ekbrand) wrote:
>Are there any program, or perl one-liner, that convert Mac ascii files 
>(with CR only as line terminator) to Unix ascii format? I have only found 
>the dos2unix proggie.

perl -pe 's/\r/\n/g'

Or, for fun:

perl -015l012pe1

:),

-- 
Colin Watson                                           [cjw44@cam.ac.uk]


Reply to: