To replace all occurances of “shtml” with “php” inside of all of the *.php files in a directory.
$ perl -pi.bak -e ‘s/shtml/php/’ *.php
See: hacks.oreilly.com: Global Search and Replace with Perl for more examples.
@maxclark
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Recent Comments
-
Recent Posts