Silahkan Melihat Tutorial di website kami dengan nyaman ENJOY YOUR LIFE ☕

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]$




0 komentar:

Post a Comment

Simply Example of grep on linux