Finding text string in all files on Linux

Friday, October 17, 2014

How To Finding text string in all files on Linux :-

Commands:-

1. grep -rnw 'directory' -e "pattern"

2. grep -Ril "text-to-find-here" /

3. grep -r "string to be searched"  /path/to/dir

4. grep -inr "Text" folder/to/be/searched/

grep "text string to search” directory-path

grep [option] "text string to search” directory-path

grep -r "text string to search” directory-path

grep -r -H "text string to search” directory-path

egrep -R "word-1|word-2” directory-path

egrep -w -R "word-1|word-2” directory-path

0 comments:

About This Blog

Lorem Ipsum

  © Copyright 2009 Linux-HelpLine.Blogspot.com

Back to TOP