Sed

Replace line in file using sed

1
sed -i '/.*text.*/c\replaced by sed' /etc/file-to-change

Replace all occurrencies

1
sed -i -e 's/few/asd/g' hello.txt

Comments

⬆︎TOP