I am looking for a shell script that recursively traverses all
.php files in a directory and performs a search & replace of a particular text pattern.
The search pattern is quite long ( > 5000 characters) so it might be saved in another textfile for convenience. Also it contains forward slash characters.
edit: i think i figured out the first part:
find . -name "*.php"
but then how do i search & replace in those files?