izabera 1439651606 learn Check if any file matches a given pattern: exists () [[ -e $1 ]]; if exists *.txt; then ... geirha 1443983115 forget geirha 1443983117 learn Check if any file matches a given pattern: exists() { [[ -e $1 ]]; }; if exists *.txt; then ... izabera 1454301976 forget izabera 1454302006 learn Check if any file matches a given pattern: exists() { [[ -e $1 ]]; }; shopt -s nullglob; if exists *.txt; then ... emanuele6 1679090639 forget emanuele6 1679090674 learn Check if any file matches a given pattern: exists() { (( $# )); }; shopt -s nullglob; if exists *.txt; then ...