Forum Discussion
jaikumar_f5
Sep 13, 2019MVP
egrep and grep -E are same. Its an extended. Lets say you want to search multiple variables in a line or a file (basically an input). You can simply use grep -E "variable1 | variable2 | variable3"
Example:
If a file has the below 5 lines in it.
The file has 4 entries
first line
second line
third line
fourth line
#cat file | grep first
first line
#cat file | grep -E "first | second"
first line
second line
#cat file | grep line
first line
second line
third line
fourth line
Hope you got the idea.