Compgen
Jump to navigation
Jump to search
if compgen -G "${PROJECT_DIR}/*.png" > /dev/null; then echo "pattern exists!" fi
https://stackoverflow.com/questions/6363441/check-if-a-file-exists-with-a-wildcard-in-a-shell-script
if compgen -G "${PROJECT_DIR}/*.png" > /dev/null; then echo "pattern exists!" fi
https://stackoverflow.com/questions/6363441/check-if-a-file-exists-with-a-wildcard-in-a-shell-script