#!/bin/bash

tar -xzvf data.crash.5sec.tar.gz
mysql -u root -ppassword -h 127.0.0.1 -P 3318 arch -e "truncate table ARCHIVE;truncate table POSITIONS;"
cat archiv.sql polohy.sql|sed -e "s/ARCHIV/ARCHIVE/g;s/POLOHY/POSITIONS/g" |\
mysql -u root -ppassword -h 127.0.0.1 -P 3318 arch