How would you go about telling whether files of a specific extension are present in a directory, with bash?
Something like
if [ -e *.flac ]; then echo t
You can use -f to check whether files of a specific type exist:
#!/bin/bash if [ -f *.flac ] ; then echo true fi