1 #!/bin/bash 2 3 for img in *.png *.gif *.jpg 4 do 5 FOUND=`grep -R $img ../site_src` 6 if [ -z "$FOUND" ] 7 then 8 mv $img useless/ 9 fi 10 done 11