[nylug-talk] Help with sed expression?

Paul Robbins robbins.paul at gmail.com
Wed Aug 22 11:51:37 EDT 2007


sorry, I forgot the quotation marks

sed 's/\\f\\n/\\n/g'




On 8/22/07, Paul Robbins <robbins.paul at gmail.com> wrote:
>
> My try to try to escape you backslashes.
>
> s/\\f\\n/\\n/g
>
> That is a quick suggestion, i will mess with it in a few and see if i can
> come up with something better.
>
> On 8/22/07, R. Mariotti <r.mariotti at fdcx.net> wrote:
> >
> > 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,
> >
> > _____________________________________________________________________________
> > Hire expert Linux talent by posting jobs here :: http://jobs.nylug.org
> > The nylug-talk mailing list is at nylug-talk at nylug.org
> > The list archive is at http://nylug.org/pipermail/nylug-talk
> > To subscribe or unsubscribe:
> > http://nylug.org/mailman/listinfo/nylug-talk
> >
>
>


More information about the nylug-talk mailing list