Stripping Carriage Return / Line Feed from text file

Kenneth Brody kenbrody at bestweb.net
Wed Jul 30 07:45:53 PDT 2008


Quoting Bill Campbell (Tue, 29 Jul 2008 15:47:09 -0700):

> On Tue, Jul 29, 2008, Kenneth Brody wrote:
>> Quoting Scott Walker (Tue, 29 Jul 2008 17:27:13 -0400):
>>
>>> I want to use a text file as an alien file.
>>>
>>> It's fixed length fields but has a carriage return/line feed between
>>> each record.
>>>
>>> Can someone remind me of the easiest way to strip the 0d0a from these
>>> records.
>>
>> Why not just add a (2,*) field at the end of your map, and just ignore
>> that field?
>
> I like the SCO program to do this, dtox -- aptly named to detox
> things from Microsoft (yeah this was originally a CP/M thing :-).

That won't help -- it will convert CRLF to LF, but he wanted them gone.
In any case, I think he's going with my suggestion to simply add a (2,*)
field in the map to cover them.

Also, I think Tandy originally had it named "dtou" -- DOS to Unos -- as
they were looking at a Unix derivative "Unos" before they decided to go
with Xenix.  I also remember a few typos in the dtox script on the 6000
because someone apparently changed the comments with "1,$s/u/x/g" or
equivalent to change "dtou" to "dtox".

-- 
Read the truth behind the movie "Expelled" at <http://www.ExpelledExposed.com>
--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list