Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
openregio
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
confiscatibene
openregio
Commits
309036a0
Commit
309036a0
authored
Apr 16, 2018
by
aborruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aggiunta creazione della versione latest
parent
93a36a23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
openregioDb.sh
openregioDb.sh
+6
-0
No files found.
openregioDb.sh
View file @
309036a0
...
...
@@ -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
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment