SFV Check script

Bash 😮

Selbsterklärend denk ich.


#!/bin/bash
#w AT william.ir
rootdir=$PWD
for dir in $(ls -1 | grep -v checksfv.sh)
 do cd "$dir"
 sfvcheck=$(cksfv -qif *.sfv 2>&1)
  if [ -z "$sfvcheck" ]; then
   echo "$dir" is OK
  else
   echo "$dir" is not ok
   echo "rm -r "$rootdir/$dir"" >> /root/rmdirs
  fi
 cd ..
done

This entry was posted in Uncategorized. Bookmark the permalink.