5 lines
83 B
Bash
5 lines
83 B
Bash
|
input='foo
|
||
|
bar'
|
||
|
|
||
|
echo "$input" | \sed '/foo/ { s/foo/baz/ s/baz/bar/ } s/bar/baz/'
|