Glodding Flashcards
Learn different types of globbing expressions (a.k.a regex)
*
Matches any string of zero or more charaters
?
Matches any single charater
~
The current user’s home directory
~ username
The home directory of ‘username’
~+
The current working directory
~-
The previous working directory
[ abc… ]
Any one character in the enclosed class
[! abc…]
Any one character not in the enclosed class
[^ abc… ]
Any one character not in the enclosed class
[[:alpha:]]
Any alphabetic charater
[[:lower:]]
Any lower-case charater
[[:upper:]]
Any upper-case charater
[[:alnum:]]
Any alphabetic or numeric charater
[[:punct:]]
Any printable character that is not a space or alphabetic
[[:digit:]]
Any digit 0-9
[[:space:]]
Any one white space character; may include tabs, newline, or carriage returns, and form feeds as well as white spaces.