Thread
:
Shell one-liner challenge
View Single Post
DrWilken
2010-08-21 , 18:26
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#
16
Search for <phrase> in all files below <path> (Recursive):
Code:
grep -R <phrase> /<path>
I.e. search for files containing the word N900 in the MyDocs folder:
Code:
grep -R N900 /home/user/MyDocs
EDIT - Adding -i would do the same, only incase sensitive.
__________________
Christian Wilken -
tux-POWER.dk!
... May the Source be with You ...
Last edited by DrWilken; 2010-08-21 at
18:30
.
Quote & Reply
|
DrWilken
View Public Profile
Send a private message to DrWilken
Visit DrWilken's homepage!
Find all posts by DrWilken