From the course: LPI Linux Essentials (010-160) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Basic regular expressions

Basic regular expressions - Linux Tutorial

From the course: LPI Linux Essentials (010-160) Cert Prep

Start my 1-month free trial

Basic regular expressions

- [Man] Lets talk about how we can search, extract an archive information from data files. Now when we want to do this, we're going to use what's known as a Regular Expression. Regular expressions are a way to describe patterns that a user might want to use, as they're looking for data inside of files. There are lots of different Linux programs that will use regular expressions. And many of these are tools for expressing these patterns inside the text, so we can search for things, not just by the word itself, but by the patterns. When we look at regular expressions, I want you to think about the concept of wildcards that we talked about before. And we use wildcards to look for file names, we're going to use regular expressions to search within those files. Now, at their simplest method, regular expressions can be plain text without any extra symbols. For example, if I wanted to search the file and look for all the cases…

Contents