Command Line Fundamentals by Vivek N

Command Line Fundamentals by Vivek N

Author:Vivek N
Language: eng
Format: mobi, epub, pdf
Publisher: Packt Publishing Private Lmiited
Published: 2018-12-21T00:00:00+00:00


Regular Expressions

A regular expression, also called a regex (plural regexes), is a kind of pattern-matching syntax, similar to wildcards, but much more powerful. A complete description of regexes would fill many chapters, so we will restrict ourselves to a reasonable subset in this chapter.

The most common use case of regexes is with the grep and sed commands, which we studied in the previous chapter. The basic operation we perform with a regex is to match it against some text:

grep can search for text matching a regex

sed can search and replace the text matching a regex with a specified replacement string



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.