Search Patterns
The characters in the following table have special meaning only in search patterns .
Character |
Pattern |
|
Match any single character except newline. Can match newline in awk. |
|
Match any number (or none) of the
single character that immediately precedes it. The preceding
character can also be a regular expression. For example,
since |
|
Match the following regular expression at the beginning of the line or string. |
|
Match the preceding regular expression at the end of the line or string. |
|
Match any one
of the enclosed characters: a hyphen ( |
|
Match a range of occurrences of
the single character that immediately precedes it. The
preceding character can also be a regular expression.
|
|
Just like |
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.