|
From: | Tony Abou-Assaleh |
Subject: | Re: using grep inside 2 levels of directory |
Date: | Thu, 22 May 2008 19:44:41 -0300 |
User-agent: | Thunderbird 2.0.0.14 (Macintosh/20080421) |
Venkatesan Jeevanandam wrote:
Hi all, I have to grep for "text" inside a directory for files "*.soc". lets say, my directory structure,$pwd /home/venkat/project/$ls arch1/ arch2/ arch3/ arch4/ $cd arch1;ls core1/ core2/ core3/ core4/ $cd core1;ls 56601.soc 56602.soc 56603.soc I want to search for "text" using grep command for all *.soc files in all "arch*/core*" folders. I tried like this, but it doesnt help me. $pwd /home/venkat/project $grep */*/*soc (not working)
How is it "not working"? Can you provide the output of that command? Also note that you need to specify the text pattern, which is missing from the above line.
I want to grep in files like, using one command. arch1/core1/*.soc arch1/core2/*soc arch1/core3/*soc arch2/core1/*soc
Cheers, TAA -- Tony Abou-Assaleh Email: address@hidden Web site: http://tony.abou-assaleh.net
[Prev in Thread] | Current Thread | [Next in Thread] |