1
0
Fork 0
mirror of https://github.com/imjasonh/urls synced 2026-07-11 08:40:08 +00:00
urls/crawl.sh
2023-01-26 11:56:33 -05:00

13 lines
214 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 -s $l | jq > $fn
done < urls.txt