I have a useful little command that searches through all files & subdirectories for a particular string:
find . -name "*" -exec grep -il "search term" {} \;
I'd like to turn this into a function that I can put in my .bashrc and call from my shell without needing to remember the whole thing, but I can't get it working. This is what I have so far:
function ff() { find . -name "*" -exec grep -il $@ \{\} \\\; }
Can anyone help? Many thanks!