1#! /bin/bash
2echo '' > log
3for ((i = $1; i <= $2; i++)); do
4   URL=http://localhost/_bp/doku.php?id=test:test
5   URL=$URL${i}
6   URL=$URL"&do=export_latexit"
7   wget -O exported/test${i}_exported.latex $URL
8done
9for ((i = $1; i <= $2; i++)); do
10   diff -bB --ignore-all-space exported/test${i}_exported.latex my/test${i}.latex >> log
11   echo '--------------KONEC '$i'------------' >> log
12done
13if [ $3 = 1 ]; then
14   wget -O exported/projekt_exported.latex 'http://localhost/_bp/doku.php?id=projects:industry:profinit:dokument_tacr_jazyk&do=export_latexit'
15fi
16cat log
17