At 12:21:05.59 on 26-FEB-2003 in message
<[EMAIL PROTECTED]>, Slawek <[EMAIL PROTECTED]> wrote:
>Michael T. Davis wrote:
>
>> My first attempt went line this:
>>
>> sed 's/ \\$//' ipf.rules
>>
>> That only removed the trailing backslash. According to the sed man page,
>> lines of input are normally read in up to the terminating newline
>character
>> "...unless there is something left after a `D' function..." So, I tried
>> using the `D' function:
>>
>> sed '/ \\$/D' ipf.rules
>>
>> This ended up deleting the entire content of lines with terminating
>> backslashes.
>>
>> I would think this would have been a pretty simple task to implement,
>> but it's becoming increasingly frustrating. Help!
>
>sed -e :a -e '/\\$/N; s/\\\n//; ta'
>
>hope this helps,
>Slawek
>
The above does the trick quite nicely.
Much obliged,
Mike
--
Michael T. Davis | Systems Specialist: ChE,MSE
E-mail: [EMAIL PROTECTED] | Departmental Networking/Computing
-or- [EMAIL PROTECTED] | The Ohio State University
http://www.er6.eng.ohio-state.edu/~davism/ | 197 Watts, (614) 292-6928