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
Give the command for finding the current date.
How do I clear my terminal history?
What are the differences among a system call, a library function, and a unix command?
What is ‘ps’ command for?
What does the metacharacter mean?
What is command statement?
why metadb requires a seperate slice to create Solaris volume manager
What is the difference between cat and more command?
What command is used to check the current users?
What are bash commands?
Differentiate cat command from more command.
Differentiate cmp command from diff command.
What is difference between grep and find command in unix?
Which command is used to copy files?
Explain ‘system calls’ with respect to unix commands?