With respect to the following
find
command-linefind . -type f -exec grep -l strings {} \;
I do not understand the usage of
-exec
and{} \
.
Answer
For each find (or directory) found, execute the following command:
grep -l strings {} \;
The {} is the place holder, which stands for the file/directory found. The \; is syntactically required.
Attribution
Source : Link , Question Author : user288609 , Answer Author : Hai Vu