replace carriage returns - the final solution
Richard D. Williams
richard at appgrp.net
Wed Jul 7 10:34:56 PDT 2004
Kenneth Brody,
Well, I thought because these chars. don't happen in a sequence I would
do it individually.
If I do it your way will the tr treat the chars. as a group occurrence,
or individually?
Richard
Kenneth Brody wrote:
>"Jay R. Ashworth" wrote:
>
>
>>On Wed, Jul 07, 2004 at 10:20:51AM -0500, Richard D. Williams wrote:
>>
>>
>>> Thanks to all and a special thanks to Ted Dodd.
>>> Here is what I ended up doing.
>>>
>>>
>[...]
>
>
>>That's easier to read, certainly... but it's probably more efficient to
>>do it as a pipeline:
>>
>>cat $1 |
>> tr -d '\000' |
>> sed 's/~//g' |
>> tr -d '\r' |
>> tr -d '\n' |
>> cat >/appl/servefx/shared/working/$1
>>
>>
>[...]
>
>Can't you combine all the "tr -d"s?
>
> tr -d '\000\r\n' | sed 's/~//g' >/appl/servefx/shared/working/$1
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.celestial.com/pipermail/filepro-list/attachments/20040707/d0edae9f/attachment.html
More information about the Filepro-list
mailing list