[nylug-talk] Help with sed expression?
R. Mariotti
r.mariotti at fdcx.net
Thu Aug 23 09:22:55 EDT 2007
Dale;
At least we've been able to determine that many readers of this list are
astute and wide-eyed! The 2nd \n what meant to be a \f so the actual
request is to replace the \f\n sequence with a either a single \f or a
\n\f sequence.
Sorry for the confusion.
B
Dale Harris wrote:
> On 2007-08-22 at 22:16, Brandorr <brandorr at opensolaris.org> elucidated:
>> Can someone please test this? sed -r 's/\f$/\f/'
>>
>
> I'm a little confused here. Isn't the form feed causing the pages to
> spit out? In which case you want to get rid of it.
>
> I think you want to use tr (like was suggested before), instead.
>
> tr -s "\f\n" "\n"
>
> may do what you want. Or perhaps just use perl.
>
> perl -pi -e 's/\f\n/\n/;'
>
>
> Dale
> _____________________________________________________________________________
> 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