#!/bin/bashs='#ABConeSize=bartwoSize=barthreeSize=foo'sed '/^#ABC/{n;s/Size=bar/Size=foo/;n;s/Size=bar/Size=foo/}' <<< "$s"
Standard input is empty
#ABC oneSize=foo twoSize=foo threeSize=foo
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!