Created
August 23, 2019 11:40
-
-
Save luckylittle/6f41c748047d189d49edd0b2f08f3614 to your computer and use it in GitHub Desktop.
Checks if all the subfolders contain *.SFV file. Reports the ones which don't have it.
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
#!/bin/bash | |
# Checks if all the subfolders contain *.SFV file. Reports the ones which don't have it. | |
for x in *; | |
do | |
ls ${x}/*.sfv >/dev/null | |
RESULT=$? | |
if [ $RESULT -eq 1 ]; then | |
echo 'NO SFV IN ${x}' | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment