add script to check rooms file
This commit is contained in:
parent
59540a2cc9
commit
b290907a43
1 changed files with 13 additions and 0 deletions
13
acatcher/roomck.sh
Executable file
13
acatcher/roomck.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue