Skip to content

Instantly share code, notes, and snippets.

@3f8wohoo
3f8wohoo / rename-torrent.sh
Created February 9, 2019 14:02
Extract name from torrent and rename .torrent file
#!/bin/bash
# Usage: rename-torrent.sh /path/to/torrents /path/to/output
#
# read-torrent must be installed
# npm install -g read-torrent
if [[ -z $1 ]]; then
echo "No input path specified!"
exit 1
else