$ echo "I like Ruby" | sed 's/like/love/' I love Ruby
$ sed 's/python/Ruby/' best_programming_language.txt
Output will actually go to another file, but this should be ok in most cases:
sed '/BINARY/d' sogo.marek_dump.sql > sogo.marek_dump.no_binary.sql
This will replace each occurance of yourhostname
with dignum.de
:
sed -i 's/yourhostname/sogo\.dignum\.de/g' /etc/apache2/conf.d/SOGo.conf
Works with OSX sed.
sed -i '' /extend/d ../core/lib/monkey_patch/*.rb