diff options
author | emkael <emkael@tlen.pl> | 2019-11-09 11:18:04 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-11-09 11:18:04 +0100 |
commit | 19a9bbbb5b44cce3411fd1452096b270d6441b13 (patch) | |
tree | 7102b412c2e2591e4c3feca3e89509ef158fe818 /bin/cezar-db-fetch.sh | |
parent | 7c1d49570f36bd334fd0a11f87a3d200bf5480df (diff) |
Converting players database to baza2.csv format
Diffstat (limited to 'bin/cezar-db-fetch.sh')
-rwxr-xr-x | bin/cezar-db-fetch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cezar-db-fetch.sh b/bin/cezar-db-fetch.sh index 3af7357..cfbc8ab 100755 --- a/bin/cezar-db-fetch.sh +++ b/bin/cezar-db-fetch.sh @@ -3,7 +3,7 @@ PAGEDIR=`dirname $0` DATE=`date --date='yesterday' +%Y%m%d` OUTPUTFILE=`realpath $PAGEDIR/../data/cezar/$DATE.csv` TMPFILE=$PAGEDIR/temp -wget http://msc.com.pl/cezar/download/baza.csv -q -O - | iconv -f windows-1250 -t utf-8 > $TMPFILE +wget http://msc.com.pl/cezar/download/baza2.csv -q -O $TMPFILE if [ -s $TMPFILE ]; then tail -n +2 $TMPFILE | sort > $OUTPUTFILE echo "Downloaded Cezar CSV into $OUTPUTFILE" |