...
I use the -i to not have sed automatically create a backup file.
Here is an often used example of escaping a the / (slash) reserved character within the single quote,
Code Block | ||
---|---|---|
| ||
sed -i 's/original/new/' notes.txt # to write example here |
References
Simple introduction - http://www.grymoire.com/Unix/Sed.html
Another introduction - http://lowfatlinux.com/linux-sed.html
...