...
A more simple description, it allows you to modify the contents of a file without you actually having to open it.
Here a simple example of replacing the word original with new in a file called notes.txt.
Code Block | ||
---|---|---|
| ||
sed -i 's/original/new/' notes.txt |
I use the -i to not have sed automatically create a backup file.
References
Simple introduction - http://www.grymoire.com/Unix/Sed.html
Another introduction - http://lowfatlinux.com/linux-sed.html
...