for i in /home/kami/*.txt; do if [ -f $i ]; then echo "blah"; fi; done;