The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Advanced & Expert Users
need help
Tags
advanced
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
UNIX for Advanced & Expert Users
need help
#
1
05-14-2010
kirankumar
Guest
n/a,
0
Posts: n/a
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
05-14-2010
amitranjansahu
Registered User
507,
27
Join Date: Jan 2009
Last Activity: 4 February 2019, 4:58 AM EST
Location: Bangalore,INDIA
Posts: 507
Thanks Given: 4
Thanked 27 Times in 27 Posts
Code
:
for dirname in `find /PATH -type d`; do grep -l analyze $dirname/* done
amitranjansahu
View Public Profile for amitranjansahu
Find all posts by amitranjansahu
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×