Main index

Introducing UNIX and Linux


Overview
Using filters
      Collating sequence
      Character classes
Character-to-character transformation
Selecting lines by content
      Regular expressions
      Basic regular expressions
      Extended regular expressions
      Grep
Stream editor
      Sed addresses
Splitting a file according to context
Choosing between the three filters
More on Vi
Summary
Exercises

Character classes

[:alnum:] letters and digits
[:alpha:] letters
[:blank:] usually Spaceand TAB
[:cntrl:] all control characters
[:digit:] digits
[:graph:] printable characters excluding Space
[:lower:] lower-case letters
[:print:] all printable characters
[:punct:] punctuation marks
[:space:] whitespace characters
[:upper:] upper-case letters
[:xdigit:] hexadecimal digits (0-9A-Fa-f)

Copyright © 2002 Mike Joy, Stephen Jarvis and Michael Luck