http://how-to.linuxcareer.com/learning- ... ux-News%29
Primjeri:
Replace every occurrence of Nick with John in report.txt
Kod: Označi sve
sed 's/Nick/John/g' report.txtKod: Označi sve
sed 's/^[ ^t]*//;s/[ ^]*$//' file.txtKod: Označi sve
sed '/./!d' file.txt