How do you grep a regular expression?
Grep Regular Expression
In its simplest form, when no regular expression type is given, grep interpret search patterns as basic regular expressions. To interpret the pattern as an extended regular expression, use the -E ( or –extended-regexp ) option.
How do you grep a regular expression in Unix?
The grep (Global Regular Expression Print) is a unix command utility that can be used to find specific patterns described in “regular expressions”, a notation which we will learn shortly. For example, the “grep” command can be used to match all lines containing a specific pattern. For example, ➢ grep “<a href” guna.