1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-24 22:26:43 +00:00
dotfiles/bin/zippy

7 lines
207 B
Bash
Executable file

#!/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"