5 lines
68 B
Bash
5 lines
68 B
Bash
|
input='foo
|
||
|
bar'
|
||
|
|
||
|
echo "$input" | \sed 's/foo/baz/ ; q ; s/baz/foo/'
|