From 8f795b1d445441daab5ffb75060a6dbf8ed0934a Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 8 Sep 2017 01:28:21 +0200 Subject: Renaming scripts so that their names make sense --- bin/fetch-cezar-db.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 bin/fetch-cezar-db.sh (limited to 'bin/fetch-cezar-db.sh') 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 -- cgit v1.2.3