My hacking journal

Multiple substitutions with sed

· by admin · Read in about 1 min · (8 Words)
bash oneliner regex sed

$echo ‘hello world!’ | sed «s/hello/good/g;s/world/bye/g» good bye!

Comments