in reply to GRUB Append Parameter in-between Quotes
The sed keeps appending after repeating the play as I can't get the negative lookahead assertion to work, I think that's what it is?
Maybe that's what it is, and maybe it is because sed doesn't implement it. TIMTOWTDI also applies to sed:
sed '/^GRUB_CMDLINE_LINUX=.*/ { /transparent_hugepage/! s/\(.*\)"/\1 t +ransparent_hugepage=never"/}' $line
Using perl, things might be easier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GRUB Append Parameter in-between Quotes
by stevieb (Canon) on Sep 10, 2016 at 00:37 UTC | |
|
Re^2: GRUB Append Parameter in-between Quotes
by ephemeric (Novice) on Sep 12, 2016 at 07:55 UTC |