[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LF to CR Conversion
- Subject: Re: LF to CR Conversion
- From: vmbb!pro-newton!pro-dan!danb (Dan Brown)
- Date: Tue, 20 Sep 94 00:21:50 PDT
- Newsgroups: comp.sys.apple2
- Organization: ProLine [pro-dan] -- Hesperia, CA
- References: <35h9pe$jc8@panix2.panix.com>
In <35h9pe$jc8@panix2.panix.com> moxie@panix.com (Mark Mentovai) writes:
>how. I want to know of a program for Unix that will change all Linefeeds
>to Carriage Returns in a specified file, so I can compress it before
tr '\n' '\r' <inputfile.txt >outputfile.txt
or
tr '\012' '\015' <...
Either will replace each newline (linefeed) with a carriage return,
taking input from inputfile.txt and sending output to outputfile.txt.
--
Dan Brown
pro-dan!danb@pro-newton.cts.com
Don't Tread on Me.