1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash for file; do case $(file -b --mime-type "$file") in application/x-bittorrent) mv "$file" /mnt/mistral/flo/torrent/watch ;; *) # nothing ;; esac done