Created
October 14, 2020 14:27
-
-
Save willread/3eac6be365d969b8c15d64f62bfce9b9 to your computer and use it in GitHub Desktop.
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
FILES=( foo.ext, bar.ext ) | |
PATH=./src | |
for FILE in "${FILES[@]}" | |
do | |
if [[ $(grep -R $FILE $PATH) ]]; then | |
: | |
else | |
echo "$FILE is unused" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment