CyberKeeda In Social Media

Grep to find specific string within folder.

#grep -nr 'your_String_to_find*' .
The dot at the end searches the current directory. Meaning for each parameter:
-n            Show relative line number in the file
'your_String_to_find*' String for search, followed by a wildcard character
-r            Recursively search sub directories listed
.             Directory for search (current directory)

No comments:

Post a Comment

Designed By Jackuna