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.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: GRUB Append Parameter in-between Quotes
by stevieb (Canon) on Sep 10, 2016 at 00:37 UTC

    Nice job ++. I took a crack at this with sed and perl this afternoon, but was cut short due to a meeting.

Re^2: GRUB Append Parameter in-between Quotes
by ephemeric (Novice) on Sep 12, 2016 at 07:55 UTC

    Thank you so much, works! How would one do this in Perl?