I find myself very often searching for one function or the other to
see how it is implemented by typing

find PATH -exec grep -n PATTERN {} \; -exec ls {} \; | mined

This is quite a mouthful and I thought it should be possible to set up
a shell script with two parameters in it (let it be named
"findscript") and then invoke it with "findscript PATH PATTERN"
I'm pretty sure there is a way to do this, but how do I do it?