This script will list files and folders in the specified directories that don't belong to torrents currently being managed by Transmission.
This is useful for finding torrents that have been removed from Transmission but haven't had their files deleted from the downloads folder.
#!/bin/bash
DIRECTORIES="/mnt/Disk1/Downloads /mnt/Disk2/Downloads"
grep -Fxv -f \