#web-development · 2014 — 06 — 18

Replace text in all files in a project – Linux

Just run this:

grep --include={*.php,*.html,*.htm} -rnl './' -e "text" | xargs -i@ sed -i 's/text/new text/g' @
replacing the extensions you want to be included.