Shell tools for Linux automation (CentOS and Raspbian primary)
dpkg --verify
-> dpkg --verify | awk '{print $3;}' | xargs dpkg -S
- for configs
find /spool2d/files/archive/Video/ -maxdepth 1 -printf '%P\0' | xargs -0 -I % -n 1 bash -c '[ -f "%" -o -d "%" ] && echo -e "\n%" && ls -l "%" "/spool2d/files/archive/Video/%"'
find /spool2d/files/archive/Video/ -maxdepth 1 -printf '%P\0' | xargs -0 -I % -n 1 bash -c '[ -f "%" -o -d "%" ] && mv -v "/spool2d/files/archive/Video/%" "/spool2d/files/archive/Video/dups/"'
find /spool2d/files/archive/Video/dups -maxdepth 1 -printf '%P\0' | xargs -0 -I % -n 1 bash -c '[ -f "%" -o -d "%" ] || echo "%"'
find /spool2d/files/archive/Video/dups -printf '%P\0' | xargs -0 -I % -n 1 bash -c '[ -f "%" -o -d "%" ] || echo "%"'