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: [EMAIL PROTECTED]
Web site: http://tony.abou-assaleh.net