jablonka.czprosek.czf

czf4bfu

Subversion Repositories:
[/] [porovnej.sh] - Rev 4 Go to most recent revision

Compare with Previous - Blame - Download


#!/bin/sh
#
# skript na synchronizaci CZF4BFU serveru
#
ls global-*.txt | sed 's/^global-//' | sed 's/\.txt$//' > temp.list
for TMPSVR in `cat temp.list`
  do
        OBSAHUJE=$(cat servers.list | grep $TMPSVR | wc -l)
        if [ $OBSAHUJE != "0" ]
        then
          echo "*** $TMPSVR nalezen ***"
        else
          if [ $TMPSVR != $MYIP ]
          then
            echo "*** $TMPSVR NEnalezen a smazan ***"
            rm ./global-$TMPSVR.txt
          fi
        fi
  done
rm ./temp.list

Powered by WebSVN 2.2.1