jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [porovnej.sh] - Blame information for rev 6

 

Line No. Rev Author Line
11unreal#!/bin/sh
2#
3# skript na synchronizaci CZF4BFU serveru
4#
5ls global-*.txt | sed 's/^global-//' | sed 's/\.txt$//' > temp.list
6for TMPSVR in `cat temp.list`
7 do
8 OBSAHUJE=$(cat servers.list | grep $TMPSVR | wc -l)
9 if [ $OBSAHUJE != "0" ]
10 then
11 echo "*** $TMPSVR nalezen ***"
12 else
13 if [ $TMPSVR != $MYIP ]
14 then
15 echo "*** $TMPSVR NEnalezen a smazan ***"
16 rm ./global-$TMPSVR.txt
17 fi
18 fi
19 done
20rm ./temp.list

Powered by WebSVN 2.2.1