http://how-to.linuxcareer.com/learning-linux-commands-sed?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+linux-news%2Ffeeds+%28Linux-News%29
Primjeri:
Replace every occurrence of Nick with John in report.txt
- Kod: Označi sve
sed 's/Nick/John/g' report.txt
Delete all spaces in front and at the end of every line of file.txt
- Kod: Označi sve
sed 's/^[ ^t]*//;s/[ ^]*$//' file.txt
Delete all blank lines from a file
- Kod: Označi sve
sed '/./!d' file.txt