Save raw json stream to disk

This commit is contained in:
raynor 2022-12-17 23:17:52 +00:00
parent a513670179
commit 3ba88451bb

View file

@ -4,6 +4,7 @@ do
today=`date +"%Y%m%d"` today=`date +"%Y%m%d"`
curl -X "GET" "https://$host/api/v1/streaming/public" \ curl -X "GET" "https://$host/api/v1/streaming/public" \
--no-progress-meter | \ --no-progress-meter | \
tee -a "$today.json" | \
grep url | \ grep url | \
sed 's/data://g' | \ sed 's/data://g' | \