Find and replace contents of files recursively

find ./ -name '*.pm' -exec sed -i -e 's/oldtext/newxtext/' "{}" \;
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

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