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:
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}
[oracle@ptud1 unix]$ grep -ril "grant select" .
./psroles.sql
./psroles.log
./connect.sql
./connect.log
./pdb/psroles2.sql
./pdb/connect.sql
[oracle@ptud1 unix]$
0 Comment to "Simply Example of grep on linux"
Post a Comment