gash/test/100-sed-command-list.sh

5 lines
83 B
Bash

input='foo
bar'
echo "$input" | \sed '/foo/ { s/foo/baz/ s/baz/bar/ } s/bar/baz/'