Created
January 17, 2023 10:43
-
-
Save andboson/aedae8bf6d4ed6a5e5b59c510ba2feea to your computer and use it in GitHub Desktop.
Search strings in files in dir
This file contains hidden or 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
#/bin/sh | |
# read check.txt with strings to find in files in directory 'data' | |
while read -r line; do | |
if grep -q -wi "$line" data/* ; then ; else echo "$line - no"; fi; | |
done <"check.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment