Using sed, how do I use sed to substitute multiple strings without creating a large pipeline? Currently I am using pipes to connect differend sed substitutions, but I want to do it using a single sed command. Below is an example of what I'm doing:
cat file | sed 's/tst/test/g' | sed 's/beta/alpha/g'
I want to make combine the two sed statements into one. How would I go about doing this?
Thanks,
John
cat file | sed 's/tst/test/g' | sed 's/beta/alpha/g'
I want to make combine the two sed statements into one. How would I go about doing this?
Thanks,
John