UNIX Tip - Find and replace in files, inline and on command line

Here is a quick and dirty way to change a bunch of files, be careful :)$ find . -name trac.ini | xargs -d'\n' sed -i "s/smtp_enabled = false/smtp_enabled - true/g"UPDATE: Here is a much cleaner way to do the search / replace part:$ replace foo bar -- *

in