Hi,
Recently need to find some string pattern in the files on linux box , following grep command did a trick :
grep -rnwl '/home/mypath' -e "searchStringPattern"
r-recursive
n-line number
w-whole word match
or
i- ignore case
l- show only filenames
Cheers,
Kapil
Recently need to find some string pattern in the files on linux box , following grep command did a trick :
grep -rnwl '/home/mypath' -e "searchStringPattern"
r-recursive
n-line number
w-whole word match
or
i- ignore case
l- show only filenames
Cheers,
Kapil
No comments:
Post a Comment
Thanks for your comment, will revert as soon as we read it.