Find and Replace in multiple directories – Perl find . -type f -name "*index.html" -print|xargs perl -i -pe 's/http://example.com/index.html/../index.html/g'