[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LF --> CR on a UNIX?? HELP!
kenh@pacifier.rain.com (Ken Hoffmann) writes:
>Hello, all... I would like for someone to re-post the little shell script
>that converts UNIX textfiles to apple-readable textfiles... Somehow
>converting LFs to CRs...
If this is not in the FAQ, it should be :) Use tr to accomplish what you
want. The following line will translate LF->CR:
tr "\012" "\015" <infile >outfile
Note that some architectures may require a different quoting style
for the octal numbers. See man tr on your machine for more info.
Soenke
--
===========================================================================
More than silver, more than gold, I need ! behrenss@informatik.
electricity. I need it for my dreams. ! tu-muenchen.de
(RACTER) ! FIDO: 2:246/13 Soenke Behrens