By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,603 Members | 1,041 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,603 IT Pros & Developers. It's quick & easy.

how to find the particular string in unix

P: 11
Hi

how to find particualr string in current directory and all sub directories in unix(command promt).

please help

bye
gupta
Aug 5 '08 #1
Share this Question
Share on Google+
3 Replies

P: 4
Are you trying to find a string of characters in a file? Try grep.

grep -r "whateveryourlookingfor" *
Aug 5 '08 #2

P: 11
yes correct but i want searching particular parttern string not only in current directory we find also enitre sub directoryies also



please help
bye
gupta



Are you trying to find a string of characters in a file? Try grep.

grep -r "whateveryourlookingfor" *
Aug 6 '08 #3

100+
P: 256
yes correct but i want searching particular parttern string not only in current directory we find also enitre sub directoryies also



please help
bye
gupta
billyguy gave you what you needed - check the manpage for grep 'man grep' , the "-r" makes it recurse into subdirectories
Aug 6 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.