grep will not search subdirectories
Posted on 2004-04-23
I am using AIX Unix. I am searching for a string which I know is in a file in a subdirectory of my home directory. I want to list the files that contain the string. I thought by using a "*" that it would check all files in all subdirectories, but apparently not. The grep command below returns nothing, but should be finding the string in a subdirectory. What am I doing wrong? Thank you!
grep -l "HOME/ScriptsTEST/echotest" *