Sed

Stream editor to do bash text manipulation

String Substituting

First one hit

sed 's/hello/world/' input.txt > output.txt

Translate all

echo "hello hello my world world" | sed 's/hello/world/g'

Last updated