4 On Unix, in one command line ? # Here the search is in PHP files, but # replace by whatever your file extension is. find . -name "*.php" -print | xargs sed -i 's/<search>/<replace>/g' # and that's all. Find and replace text in multiple files17 January 2012 in Random Fix tagged unix by Fab