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
Who invented grep?
What is the functionality of a top command?
What are file commands?
What is the command to compare two files in unix?
What are the unix commands?
How does the system know where one command ends and another begins?
What is a command and examples?
What is the use of the tee command?
How to find $ai_serual resolved path by using unix
What do know about tee command and its usage?
What are reported commands?
What are the differences among a system call, a library function, and a unix command?
What does the command ' $who | sort –logfile > newfile' do?
How to use grep command to list find the records of a file containing 10 different strings?
What is unix command?