fork(10) download
  1. #!/bin/bash
  2. s='#ABC
  3. oneSize=bar
  4. twoSize=bar
  5. threeSize=foo'
  6. sed '/^#ABC/{n;s/Size=bar/Size=foo/;n;s/Size=bar/Size=foo/}' <<< "$s"
Success #stdin #stdout 0.01s 5508KB
stdin
Standard input is empty
stdout
#ABC
oneSize=foo
twoSize=foo
threeSize=foo