I can't find any documentation about the
-e switch, for simple replace, do I need it?
sed -e 's/foo/bar/'
migrated from stackoverflow.com Mar 1 '12 at 17:30
This question came from our site for professional and enthusiast programmers.
From the man page:
So you can use multiple
Would first replace
This might work for you:
In each case the
Normally commands can be separated by a
The alternative is to use the shell(bash) to insert a newline: