Updated bash.sh; added POSIX character classes for pattern matching

This commit is contained in:
M0S111
2025-01-22 16:54:35 +05:00
committed by GitHub
parent c5420183ab
commit 2c2b23e9d3

View File

@@ -259,6 +259,17 @@ $(UNIX command) # command substitution: runs the command and return
typeset -l <x> # makes variable local - <x> must be an interger
#########################
# POSIX Character Classes
#########################
[:alnum:] # Alphanumeric characters
[:alpha:] # Alphabetic characters
[:digit:] # Numerals
[:upper:] # Uppercase alphabetic characters
[:lower:] # Lowercase alphabetic characters
[!characters] # Matches any character that is not a member of the set characters
##############################################################################
# FUNCTIONS
##############################################################################