Skip to content

Instantly share code, notes, and snippets.

@willread
Created October 14, 2020 14:27
Show Gist options
  • Save willread/3eac6be365d969b8c15d64f62bfce9b9 to your computer and use it in GitHub Desktop.
Save willread/3eac6be365d969b8c15d64f62bfce9b9 to your computer and use it in GitHub Desktop.
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