[nylug-talk] Help with sed expression?
Brandorr
brandorr at opensolaris.org
Wed Aug 22 22:16:20 EDT 2007
Can someone please test this? sed -r 's/\f$/\f/'
(I ditched the last g as the string isn't going to appear more than
once per line - I think that's what it does anyway)
On 8/22/07, Brandorr <brandorr at opensolaris.org> wrote:
> I mean:
>
> gsed -r 's/\f$/\f/'
>
> On 8/22/07, Brandorr <brandorr at opensolaris.org> wrote:
> > Does this do what you want? gsed -r 's/\f$/\n/'
> >
> > -Brian
> >
> > 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
> > >
> >
> >
> > --
> > - Brian Gupta
> >
> > http://opensolaris.org/os/project/nycosug/
> >
>
>
> --
> - Brian Gupta
>
> http://opensolaris.org/os/project/nycosug/
>
--
- Brian Gupta
http://opensolaris.org/os/project/nycosug/
More information about the nylug-talk
mailing list