Regarding for Shell scripting in Unix

Hello Everyone, I want to know In Shell scripting, how do I separate the grep and egrep? Can anyone explain this with some examples?

Hi @Ankit_Dixit ,

What do you mean by separate the grep and egrep? Can you please explain? Are you looking for a difference between the two commands?

Yes, I want to know the difference with some examples. I know egrep is the latest version of grep.

I have found one example of the difference between them with the help of this article.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki