czf4bfu |
Subversion Repositories: |
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