Lesson 13. Regular Expressions

In this lesson, you will learn the basics of regular expressions and how to use them in your Unix environment.

As we learn more about Unix, it is apparent that most of its power comes from commands such as cron, ls, man, tail, and so on. And what did we learn in the last lesson? We learned how those commands can be combined or altered based on other characters added, which would specify tasks for Unix. In this chapter, we will continue this discussion, as I will introduce you to the concept of regular expressions.

Regular expressions, commonly known as “RE, RegEx, regexp, regex, or regxp,” are a set of key combinations that are meant to allow Unix users and administrators to have control over what they are searching ...

Get SAMS Teach Yourself Unix in 10 Minutes 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.