Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
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

...