search a directory for a string linux code example
Example 1: shell find string in directory
grep -R "string_to_search" *
Example 2: linux find file containing text
# syntax
# find *</path/to/dir> -name '*<file(s)-to-search>' -exec grep '*<string-to-find>' {} /dev/null \;
# example
find 'C:/Users/JacquesK' -name '*.*' -exec grep 'Random text to find' {} /dev/null \;