I am trying to understand a shell script that uses sed. I found that there were some places where sed was invoked with the -e option.
I tried to see the man page and it just mentions,
-e command
Append the editing commands specified by the command argument to the list of commands.
which is not very clear to me.
Can someone kindly explain to me what the -e does? Thanks.
PS: I am using sed in mac
mancommand makes sense. – Apr 15 '13 at 11:06-ebecause the above script can be done similarly by:sed 's/string1/string2/g;s/string4/string5/g' file. Whatever separate expressions you have, you can fuse them into 1 expression and then drop the-e. Can somebody please reveal the necessity purpose of-ein sed? – daparic Oct 22 '18 at 17:19