Give a regular expression that finds two things, try to
come up with regular expressions that find each
individually using "egrep" command?

Answer Posted / niranjan

Gud command egrep but it not available in all unix flaviours.

grep -e option do the same as egrep

syntax:-
egrep 'pattern1|pattern2|pattern3' filename

grep -e 'pattern1' -e 'pattern2' -e 'pattern3' filename

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the “echo” command do?

627


What is grep and how do you use it?

581


What is the command to find hidden files in the current directory?

589


How do I clear my terminal history?

588


What is the unix command to confirm a remote host is alive or not?

594






How do you grep a case insensitive?

546


What is the use of find command in unix?

588


Which command is used to create a directory?

577


What do know about tee command?

607


What does this command do? Cat food 1 > kitty

984


What is awk good for?

591


What is used to type command?

549


How do I run a bash script?

588


What is rmdir command?

557


Describe the usage and functionality of the command rm –r * in unix?

830