need help


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users need help
# 1  
Old 05-14-2010
need help

Hi,

i have directory and in that i have subdirectories and having lot of files. I need to find out the string 'analyze' is in which directory.


could you please help me out.

Thanks in advance
kirankumar
# 2  
Old 05-14-2010
Code:
for dirname in `find /PATH -type d`;
do
    grep -l analyze $dirname/*


done

Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question