raspberrypi/acatcher/roomck.sh

13 lines
242 B
Bash
Executable file

#!/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