To find a word from multiple level files:
"find . -type f -exec grep [word2find] {} +" is working on UNIX machines but not working on Linux machine. What is the equivalent command on Linux to find the word from multiple level files?
Input is appreciated.
try this -
find ./ -name "*.*" | xargs grep <word_to_find>
here *.* represents ur file naming pattern. you can replace it with your requiremnt.
maybe you try find /home -name -exec grep "reg" {} \;
Works on my RHEL and Xubuntu servers...
All three give same results... If there are a large number of files, I use pipe xargs for quicker responses.