Created
September 23, 2023 14:46
-
-
Save gabldotink/2ad3e36cbbdd63345f9136409197b2a9 to your computer and use it in GitHub Desktop.
checking discrepancies between a local download and the torrent files of the Elephants Dream 360p PNGs. broken. CC0 1.0
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 | |
# SPDX-License-Identifier: CC0-1.0 | |
# This script is broken. | |
# for i in $(transmission-show /tmp/ed.torrent);do printf "$i" | grep --fixed-strings 'ED-360-png/' | awk '{print $1;}' > /tmp/ed_1 2>&1;find "ED-360-png/*" -type f -exec [[ {} == "$i"'.!qB' ]] \; && cat /tmp/ed_1 && printf "$q";done | |
for i in $(transmission-show /tmp/ed.torrent);do | |
printf '%s' "$i" | \ | |
if grep --fixed-strings 'ED-360-png/';then | |
for q in ED-360-png/*;do | |
if [[ "$i"'.!qB' == 'ED-360-png/'"$q" ]];then | |
printf '%s %s\n' "$i" "$q" | |
else | |
printf 'nope %s\n' "$q" | |
fi | |
done | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment