gash/test/100-sed-pattern-address.sh

6 lines
57 B
Bash

input='bar
baz
bam'
echo "$input" | \sed '/baz/ s/a/i/'