1
0
Fork 0
mirror of https://github.com/imjasonh/urls synced 2026-07-08 15:35:29 +00:00
urls/crawl.sh
2023-01-25 11:27:11 -05:00

13 lines
211 B
Bash
Executable file

#! /usr/bin/env bash
set -euo pipefail
while read l; do
[[ -z $l ]] && continue
[[ $l =~ ^#.* ]] && continue
fn=${l#"https://"}
echo $fn
mkdir -p $(dirname $fn)
curl $l | jq > $fn
done < urls.txt