Skip to content

Instantly share code, notes, and snippets.

View neoranger's full-sized avatar

Natanael Andrés Garrido neoranger

View GitHub Profile
@neoranger
neoranger / removecompletedtorrents.sh
Created March 15, 2017 16:15 — forked from bulljit/removecompletedtorrents.sh
Transmission-Daemon: Remove Completed Torrents
#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here…
MOVEDIR=/home/mjdescy/media # the folder to move completed downloads to
# …or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces
# use cut to get first field from each line