Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Created August 23, 2019 11:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luckylittle/6f41c748047d189d49edd0b2f08f3614 to your computer and use it in GitHub Desktop.
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.
#!/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