Saturday, July 11, 2015

Simply Example of grep on linux

Do you want to find content of file on directory on linux?
I'd like to give you a simply command to do that.
Syntax:
grep -ril {content what you want to search} {path of the directory}
Example:




[oracle@ptud1 unix]$ grep -ril "grant select" .

./psroles.sql

./psroles.log

./connect.sql

./connect.log

./pdb/psroles2.sql

./pdb/connect.sql

[oracle@ptud1 unix]$

Share this

0 Comment to "Simply Example of grep on linux"

Post a Comment