Find and replace across multiple files

With SSH command line access, you can choose from the following...
* perl -pi -w -e 's/search/replace/g;' *.php
-e means execute the following line of code.
-i means edit in-place
-w write warnings
-p loop
* find ./ -type f -exec sed 's/search/replace' {} \;

  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?