Skip to content

Instantly share code, notes, and snippets.

@gabldotink
Created September 23, 2023 14:46
Show Gist options
  • Save gabldotink/2ad3e36cbbdd63345f9136409197b2a9 to your computer and use it in GitHub Desktop.
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
#!/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