Home » Infrastructure » Unix » Unix command help
Unix command help [message #244541] Wed, 13 June 2007 04:47 Go to next message
gkrishn
Messages: 506
Registered: December 2005
Location: Putty a dark screen
Senior Member
Hi,

want to search for a pattern in all files in unix filesystem.Is it possible through any command ?
ie, 'All files,containing word'
Re: Unix command help [message #244655 is a reply to message #244541] Wed, 13 June 2007 11:29 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
$ man find
$ man grep
Re: Unix command help [message #244957 is a reply to message #244655] Thu, 14 June 2007 13:16 Go to previous messageGo to next message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
find . -name "*.log" -follow -exec egrep "string1|string2" {} \; -print 
Re: Unix command help [message #245204 is a reply to message #244541] Fri, 15 June 2007 07:49 Go to previous message
gkrishn
Messages: 506
Registered: December 2005
Location: Putty a dark screen
Senior Member
Andrew,that was realy useful. Thank you
Previous Topic: STANDBY in HP-Ux
Next Topic: scp file without password
Goto Forum:
  


Current Time: Fri Apr 19 03:40:52 CDT 2024