Difference between revisions of "Compgen"
Jump to navigation
Jump to search
(Created page with "``` 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-wildcar...") |
(No difference)
|
Latest revision as of 19:02, 22 November 2022
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