find . -iname "*.jpg" -type f > armors.txt find . \( -iname "*.jpg" -o -iname "*.jpeg" \) -type f > armors.txt