fork download
  1. #!/bin/bash
  2.  
  3. sed '/comment : "Blabla" ;/a \ leakage_power_unit : "1nW";'
  4.  
  5. printf '\n--------\n'
  6. sed --version
  7.  
  8.  
Success #stdin #stdout 0.01s 5512KB
stdin
foo
 "comment : "Blabla" ;"
bar
stdout
foo
 "comment : "Blabla" ;"
  leakage_power_unit : "1nW";
bar
--------
sed (GNU sed) 4.7
Packaged by Debian
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://g...content-available-to-author-only...u.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.
GNU sed home page: <https://w...content-available-to-author-only...u.org/software/sed/>.
General help using GNU software: <https://w...content-available-to-author-only...u.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.