Files
dotfiles/scripts/shell/gdl-update-todo.sh
2024-06-12 02:00:39 -03:00

9 lines
224 B
Bash
Executable File

#!/bin/bash
gallery_dl_path=/mnt/e/home/Documents/data-hoarding
cd "$gallery_dl_path"
urls=($(grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" -i "$gallery_dl_path/todo.md"))
for url in ${urls[@]}; do gallery-dl $url; done