1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-09 00:14:53 +00:00
dotfiles/bin/zippy

7 lines
202 B
Plaintext
Raw Normal View History

#!/bin/sh
data=$(curl -l "$1" | grep /d/)
base=$(echo "$1" | sed s/v/d/ | cut -d/ -f1-5)
num=$(echo "$data" | awk -F'[()]' '{print $4}'| bc)
name=$(echo "$data" | cut -d/ -f5)
aria2c "$base/$num/$name"