Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Created May 8, 2020 04:11
Show Gist options
  • Save luckylittle/53ef53c7ccc10f4be1e6ea14008419c9 to your computer and use it in GitHub Desktop.
Save luckylittle/53ef53c7ccc10f4be1e6ea14008419c9 to your computer and use it in GitHub Desktop.
Oneliner lists eBook release folders which don't have the right amount of *.nfo and/or *.diz files in them
for x in `ls -1` ; do cd ${x}; echo ${x}\: NFOS=$(ls *.nfo | wc -l) DIZS=$(ls *.diz | wc -l) ; cd .. ; done | grep -v 'NFOS=1 DIZS=1'
@luckylittle
Copy link
Author

For music releases:

for x in `ls -1` ; do cd ${x}; echo ${x}\: NFOS=$(ls *.nfo | wc -l) SFVS=$(ls *.sfv | wc -l) M3US=$(ls *.m3u | wc -l); cd .. ; done | grep -v 'NFOS=1 SFVS=1 M3US=1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment