From the course: Ubuntu Linux: Essential Commands
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Explore regular expressions
From the course: Ubuntu Linux: Essential Commands
Explore regular expressions
- [Narrator] Regular expressions are a way of describing text and they're used very widely by programmers and system administrators. Regular expressions let you specify a pattern to look for in text, rather than searching for an explicit string of specific characters. So they're very helpful if you ever need to help answer a question, where you know what the answer looks like but not what it specifically is. Say you wanted to find all the email addresses or phone numbers in a text file. You can write a regular expression that looks for anything formatted like one. Regular expressions are essentially a whole programming language of their own, so in this video, I'll just go over the basics, but be sure to check out our regular expressions course for a more detailed look. Common operators that we'll see in regular expressions are dot, star or asterisk, and square and curly brackets. Dot represents any character. Star or asterisk matches one or more of a given character. Square brackets…
Contents
-
-
-
-
(Locked)
Files on Linux10m 27s
-
(Locked)
Text files8m 52s
-
(Locked)
Work with files and directories10m 16s
-
File links7m 27s
-
(Locked)
Finding files4m 40s
-
(Locked)
Input/output redirection6m 18s
-
(Locked)
Compare text files4m 43s
-
(Locked)
Compare non-text files3m 20s
-
(Locked)
Compress and decompress files9m 12s
-
(Locked)
Explore regular expressions3m 36s
-
(Locked)
Change files programmatically4m 42s
-
(Locked)
-
-