On 05/03/2011 10:33 AM, Marc Herbert wrote:
No, 'g' is even required just to get rid of a single
"quiet" PLUS a
single "rhgb". Compare:
My bad. You and original poster are right. global modifier on pattern
sub is correct.
PS: Perl is really overkill here.
OK. I like perl one liners.
Got in the habit of replacing "grep | cut | sed" pipes with perl one
liners.
I really just wanted to show that you should do a pattern replace on the
boot loader config lines for kernel args.
Please use sed -e ... -i ... or whatever is better, instead of perl -pe
... -i ...
Thanks for the corrections...