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
189 B
Plaintext
Raw Normal View History

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