in reply to Re: GRUB Append Parameter in-between Quotes
in thread GRUB Append Parameter in-between Quotes

I'm sorry, should have said that I can't get it to work in sed and Ansible module, how would one go about doing it in Perl?

  • Comment on Re^2: GRUB Append Parameter in-between Quotes

Replies are listed 'Best First'.
Re^3: GRUB Append Parameter in-between Quotes
by hippo (Archbishop) on Sep 12, 2016 at 08:12 UTC

    See perlrun for -p and -e:

    echo 'FOO="bar"' | perl -pe '/^FOO=/ and s/"$/ baz"/;'

      Thank you.