Skip to content
Snippets Groups Projects
Commit 32b345a7 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

save output file into the data directory where the source data comes from

parent 5c7bd783
Branches
No related tags found
No related merge requests found
...@@ -5,14 +5,14 @@ use strict; ...@@ -5,14 +5,14 @@ use strict;
use Data::Dumper; use Data::Dumper;
$Data::Dumper::Indent= 1; $Data::Dumper::Indent= 1;
my $dir= 'data/2019-08-05a'; my $dir= shift (@ARGV) || 'data/2019-08-05a';
my $data= {}; my $data= {};
read_tsv($data, join('/', $dir, 'P1566.csv'), 'P1566', 0); read_tsv($data, join('/', $dir, 'P1566.csv'), 'P1566', 0);
read_tsv($data, join('/', $dir, 'P227.csv'), 'P227', 1); read_tsv($data, join('/', $dir, 'P227.csv'), 'P227', 1);
write_data($data, 'geonames.tsv'); write_data($data, join('/', $dir, 'wdq-geonames-gnd.tsv'));
exit(0); exit(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment