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
Explain command to display different lines that are found when compare two files?
How do I use grep to search for a file?
How do I run a whois command?
What does pipe () return?
What are the dos commands?
What is {} in find command?
Using unix command how to display no of records in oracle?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the pipe command?
What is awk good for?
What is the difference between awk and grep?
What does touch command do in unix?
What are grep patterns?
Describe the zip/unzip command using gzip.
What's a command word?