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

5 lines
83 B
Bash
Raw Normal View History

2018-12-09 19:08:40 +00:00
input='foo
bar'
echo "$input" | \sed '/foo/ { s/foo/baz/ s/baz/bar/ } s/bar/baz/'