czf4bfu |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|---|---|---|
1 | 1 | unreal | #!/bin/sh |
2 | # |
||
3 | # skript na synchronizaci CZF4BFU serveru |
||
4 | # |
||
5 | ls global-*.txt | sed 's/^global-//' | sed 's/\.txt$//' > temp.list |
||
6 | for 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 |
||
20 | rm ./temp.list |