[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to convert LF's to CR's in UNIX?
In article <SKNKWRKS.93Aug30114435@sonny-boy.cs.unlv.edu>,
Scott Alfter <sknkwrks@sonny-boy.cs.unlv.edu> wrote:
>Hmm...don't know about shell scripts, but here are a couple of C
>programs that I use for converting from UNIX newlines to either Apple
cr2lf cat !^ | tr '\015' '\012' > !^.X ; rm -f !^; mv !^.X !^
lf2cr cat !^ | tr '\012' '\015' > !^.X ; rm -f !^; mv !^.X !^
obviously those are aliases.
--
unknown@apple.com Apple II Forever
unknown@ucscb.ucsc.edu These opinions are mine, not Apple's.