[nylug-talk] Help with sed expression?

R. Mariotti r.mariotti at fdcx.net
Wed Aug 22 11:43:09 EDT 2007


Luggers:

Quick one for you to help a tired brain:

I have a series of text files that all end with a x0c0a which is causing 
havoc with my printers (extra page output).

 > 0000420 4f47 4e20 2059 3331 3330 2d37 3639 3031
 > 0000430 0c0a
 > 0000432

I plan on filtering it with sed to search for the \f\n and replace it 
with just a \f and send it off.

However, I cannot get it to work!!!!

my sed line look like:    s/\f\n/\n/g

Any ideas what I need to change to make it work???


Thanks all,


More information about the nylug-talk mailing list