1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-08 16:04:37 +00:00
dotfiles/bin/zippy

7 lines
207 B
Plaintext
Raw Normal View History

#!/bin/bash
data=$(curl -l "$1" | grep /d/)
base=$(echo "$1" | sed s/v/d/ | cut -d/ -f1-5)
num=$(echo "$data" | cut -d\( -f3 | cut -d\) -f1 | bc)
name=$(echo "$data" | cut -d/ -f5)
aria2c "$base/$num/$name"