Created
April 21, 2019 11:56
-
-
Save ilkayisik/48afa63ec3b04c021bdb14b76ec7f33c to your computer and use it in GitHub Desktop.
search a directory with subdirectories and find if a pattern exists in listed files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for FILENAME in $(find /Users/ilkay.isik/git/ilkayisik.github.io -type f) ; do | |
echo $FILENAME | |
if grep -q isik "$FILENAME"; then | |
echo "isik is found" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment