Files

18 lines
257 B
Bash
Raw Permalink Normal View History

2026-01-23 08:55:18 +01:00
#!/usr/bin/bash
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then
echo "Usage: $0 url [file out] [*]"
exit 1
fi
URL=$1
shift
OUT=${1:-"posts.json"}
echo "ÖUT = $OUT"
shift
bsdlpost.py $(bsurifromurl.py $URL 2>/dev/null) -o $OUT $@ 2>/dev/null
exit 0