1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-22 23:02:46 +00:00
dotfiles/bin/zippy

7 lines
202 B
Bash
Executable file

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