#!/bin/bash dir="/bin" files=`ls $dir` for f in $files do echo "In $dir there is $f" if [ $f == "cat" ] then echo "Miaow !" fi done