Thread: almost there
View Single Post
  #3  
Old 05-11-2011, 03:30 AM
cerbere
Fire Beetle
 
Join Date: May 2011
Posts: 9
Default

thanks for your reply
I wrote a little script, not perfect but did the job

Code:
#!/bin/bash
LASTREV=1751
DIR=eqemulator/projecteqemu/utils/sql/svn/

#cd $DIR

for f in *.sql
do
TT="$(echo $f | sed -e "s/_.*//")"
#echo $TT
if [ "$TT" -gt "$LASTREV" ]
then
echo $TT
mysql --user=YOURUSER--password=YOURPASS peq < $f
fi
done
Reply With Quote