#!/bin/bash # A little script I made that gathers the linux torrents from distrowatch and puts them in downloads pwd sleep 1 # Get rid of all the crap that will prevent wget from reading the file properly mkdir TEMP curl https://distrowatch.com/news/torrents.xml | egrep -o "https?://[^ ]+" | cut -d '<' -f 1 > /tmp/torrent_urls # Download the torrents and move it to the watch directory cd TEMP wget -R *.torrent.1 -i torrent_urls mv -i *.torrent $HOME/downloads ls -l $HOME/downloads/ cd .. rm -rfv /tmp/torrent_urls exit 0