Using bash, how to find files in a directory structure except for *.xml files? I\'m just trying to use
find . -regex ....
regexe:
with bash:
shopt -s extglob globstar nullglob for f in **/*!(.xml); do [[ -d $f ]] && continue # do stuff with $f done