With regards to this post, how would I exclude one or more files from applying the string replacement? By using the aforementioned post as an example, I would like to be able to replace "apples" with "oranges" in all descendant files of a given directory except, say, ./fpd/font/symbol.php
.
My idea was using the -regex
switch in the find command but unfortunately it does not have a -v
option like the grep
command hence I can't negate the regex to not match the files where the replacement must occur.