add script to check rooms file

This commit is contained in:
Donald Burr 2015-02-19 02:31:10 -08:00
parent 59540a2cc9
commit b290907a43

13
acatcher/roomck.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if [ ! -f "$1" ]; then
echo "error: must specify rooms file"
exit 1
fi
for ROOM in `cat "$1"`; do
if grep -q "|$ROOM\$" MASTER_LIST; then
echo "found valid room $ROOM"
else
echo "FOUND INVALID ROOM $ROOM"
fi
done