summaryrefslogtreecommitdiff
path: root/bin/fetch-cezar-db.sh
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
committeremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
commit8f795b1d445441daab5ffb75060a6dbf8ed0934a (patch)
tree15e55a2a7e03867ac0cccfb8303674d478510503 /bin/fetch-cezar-db.sh
parent655a9847513332e8e119f37f7ed95f4ab002b1a1 (diff)
Renaming scripts so that their names make sense
Diffstat (limited to 'bin/fetch-cezar-db.sh')
-rwxr-xr-xbin/fetch-cezar-db.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/bin/fetch-cezar-db.sh b/bin/fetch-cezar-db.sh
deleted file mode 100755
index 3af7357..0000000
--- a/bin/fetch-cezar-db.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-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
-if [ -s $TMPFILE ]; then
- tail -n +2 $TMPFILE | sort > $OUTPUTFILE
- echo "Downloaded Cezar CSV into $OUTPUTFILE"
-else
- echo 'Cezar CSV fetch failed'
-fi
-rm $TMPFILE