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'

Leave a Reply

Your email address will not be published. Required fields are marked *