Commit 309036a0 authored by aborruso's avatar aborruso

aggiunta creazione della versione latest

parent 93a36a23
......@@ -18,6 +18,12 @@ while [ $contatore -ge 0 ]; do
let contatore=contatore-1
# scarico la risorsa in formato JSON
curl "$uri" | jq . >"$cartella"/download/"$dataoggi"_"$nome".json || exit 1
# creo copia del latest data in json
rm "$cartella"/download/latest_"$nome".json
cp "$cartella"/download/"$dataoggi"_"$nome".json "$cartella"/download/latest_"$nome".json
# la converto in CSV
in2csv <"$cartella"/download/"$dataoggi"_"$nome".json -f json >"$cartella"/download/"$dataoggi"_"$nome".csv
# creo copia del latest data in csv
rm "$cartella"/download/latest_"$nome".csv
cp "$cartella"/download/"$dataoggi"_"$nome".csv "$cartella"/download/latest_"$nome".csv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment