The command to do a global string replace in many files using find and ex.
find . -name '*.html' -exec ex -s -c '%s/sql-ledger.png/mylogo.gif/g' -c 'w!' -c 'q' {} \;
This worked great. I figured I'd post it here first. If this forum works out, "we" could make a nice knowledge base article out of the best ones![]()
Bookmarks