#!/usr/local/bin/bash for dir in *.com; do if (! test -d $dir/$1) then echo "Not root." fi done