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
189 B
Bash
Executable file

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