Chapter 6. Regular Expressions

Chapter Syllabus

  • 6.1 How a Command Is Executed

  • 6.2 Position Specifiers

  • 6.3 Meta Characters

  • 6.4 Standard and Extended Regular Expressions

All human languages have idioms and phrases. These are made up of combinations of words not used in their ordinary meanings. Regular expressions can be considered as idioms of the UNIX shell. These are used for string pattern matching in many UNIX commands. As idioms and phrases convey a handful of meanings in few words, regular expressions are also very useful where you need to match complex text patterns and ordinary methods are just not applicable.

Regular expressions consist of strings of characters, position specifiers or anchor characters, and meta characters that have special meanings. ...

Get HP-Certified HP-UX System Administration 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.