#!/usr/bin/perl -pi.unix =head1 NAME unix2mac - convert Unix line terminators to Macintosh line terminators =head1 SYNOPSIS unix2mac [file].. =head1 DESCRIPTION This reads one or more files (or stdin), and writes to stdout the data with any Unix-style \r\n line terminators with the Macintosh \r line terminator. =head1 OPTIONS =head1 FILES =head1 BUGS =head1 SEE ALSO mac2unix, dos2unix, unix2dos =head1 AUTHOR John Chambers =cut s/\n/\r/g;