Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Command to examin the contents of files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
blueiceMD
n00b
n00b


Joined: 04 Nov 2006
Posts: 15

PostPosted: Sat Nov 04, 2006 6:45 am    Post subject: Command to examin the contents of files Reply with quote

Does anyone know a command that will examine the contents of files and determine if they contain a particular expression? I have a feeling find may do this with a particular switch, but I cannot discern any such functionality from the man page. Thanks a lot.
_________________
- md
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Sat Nov 04, 2006 6:53 am    Post subject: Reply with quote

grep :?:
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
blueiceMD
n00b
n00b


Joined: 04 Nov 2006
Posts: 15

PostPosted: Sun Nov 05, 2006 6:11 am    Post subject: Reply with quote

Thanks a lot!

grep pattern `find path`

is the best thing ever!
_________________
- md
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum