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
Which command is used to copy files?
What does the metacharacter mean?
Enlist some filename manipulation commands in unix.
How to display no of records in oracle using unix command?
What is ‘ps’ command for?
What are reported commands?
What does the md command do?
How do I delete files from command prompt?
What is awk used for?
What do chown command do?
How do I use grep to search for a file?
What is awk good for?
What does grep v grep do?
How to find $ai_serual resolved path by using unix
What are grep patterns?