On Jan 18, 2007, at 4:17 PM, Luis Ontanon wrote:
oops that would be
$(PERL) -ae 'chomp; print "$_\015";' <infile >outfile
...and the same for the others.
Also:
# this "DOSifies" eols
${PERL} -ae 'chomp; print "$_\012\015";'
Presumably you meant
${PERL} -ae 'chomp; print "$_\015\012";'
# this "Unixizes" eols
${PERL} -ae 'chomp; print "$_\015";'
${PERL} -ae 'chomp; print "$_\012";'
# this "OldMacIzes" eols
${PERL} -ae 'chomp; print "$_\012";'
${PERL} -ae 'chomp; print "$_\015";'
(CR is octal 15, LF is octal 12).