Character classes in linux shell

Here is the list of character classes in Linux. They are used in pattern matching.
  • [:alpha:] matches letters only.
  • [:digit:] matches numbers only.
  • [:alnum:] matches letters and numbers only.
  • [:xdigit:] matches hexadecimal numbers.
  • [:lower:] matches a-z.
  • [:upper:] matches A-Z.
  • [:blank:] matches a space or a tab.
  • [:space:] matches white space and horizontal tab.
  • [:cntrl:] matches control characters.
  • [:print:] Printable characters in the range of ASCII 32 – 126.

Web development and Automation testing

solutions delivered!!