first commit

This commit is contained in:
2022-12-27 21:59:06 +01:00
commit 7ae0b00241
29 changed files with 1157 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
DATE=`date +"%Y-%m-%d"`
curl https://api.coindesk.com/v1/bpi/currentprice.json > /tmp/cryptocurrency.json
jq -c 'del(.disclaimer)' /tmp/cryptocurrency.json >> /opt/output/cryptocurrency_$DATE.json
find /opt/output/ -mtime +5 -delete