[nylug-talk] Help with sed expression?
Dale Harris
rodmur at maybe.org
Thu Aug 23 09:13:23 EDT 2007
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
More information about the nylug-talk
mailing list