The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
locating a string pattern in a tree
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
locating a string pattern in a tree
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
05-24-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398
Code:
find . -type f -exec grep "<pattern>" {} \;
Code:
find . -type f | xargs grep "<pattern>"
anbu23
View Public Profile
Find all posts by anbu23
Find anbu23's past nominations received
Find anbu23's present nominations given