gash/test/100-sed-quit.sh

5 lines
68 B
Bash

input='foo
bar'
echo "$input" | \sed 's/foo/baz/ ; q ; s/baz/foo/'