--- In [email protected], "catdude92346" <[EMAIL PROTECTED]> wrote: > --- In [email protected], "oooyooo" <[EMAIL PROTECTED]> wrote: > > hi, > > > > I want to find a file, which contain a specific word. Any linux > > command, such as "find"... > > > > > > thanks. > > grep the-word-to-find /path/to/file/*
Although * is going to work in most situations, in order to avoid the times when you're doing something more complicated and the shell expands * in an unanticipated manner you should use -r instead for recursive searches: grep -r the-word-to-find /path/to/files Also useful is -i for case insensitive and quotations for searches with white space. ex. grep -ri "this phrase with caps OR without" /path/to/files Martin ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h228k3p/M=362335.6886445.7839731.1510227/D=groups/S=1705006580:TM/Y=YAHOO/EXP=1124292264/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
