file correction
Richard D. Williams
richard at appgrp.net
Tue Jul 12 08:29:53 PDT 2011
On 7/11/2011 2:40 PM, Brian K. White wrote:
> On 7/10/2011 3:36 PM, ROBERT PULLIAM wrote:
>> I have a file that is one long string. ie st*234*685~bd*tuy*45*cvb~se*123*1234567
>
>> iI would like to find all the ~ and replace with a manual line feed. At present I am copying the files from unix to windows and using word with replace to do this. Would like to be able to do it in unix, Using sco unix.
>> Is there an ed, sed or grep comand that will find and replace?
>> Any suggestions - thanks - Robert Pulliam MD
> Why?
>
> I usually hate when people ask that instead of answering the question
> that was actually asked, but in this case I need convincing that you're
> not asking people to spend effort thinking up ways to help you do
> something the hard and non-robust way when there is really another way
> that is not only easier but more robust.
>
> There are many ways to get that transformation done, and without more
> context it's not possible to say what is the best way, and I bet that
> context will actually show that you don't even need or want to do that
> transformation in the first place.
>
google sed -e.
Richard
More information about the Filepro-list
mailing list