Difference between grep and egrep

Difference between grep and egrep

egrep is extended grep which includes additional regular expression metacharacters like ?, +, () and |

Eg:

egrep “(People|sense)” values.txt

This command searches for patterns People and sense in file values.txt

Written by actsupp-r0cks