How to use ‘-prune’ option of ‘find’ in sh?

I don’t quite understand the example given from the man find, can anyone give me some examples and explanations? Can I combine regular expression in it? The more detailed question is like this: Write a shell script, changeall, which has an interface like changeall [-r|-R] “string1” “string2”. It will find all files with an suffix … Read more