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 the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How do I open a port?
What does 'mkdir' command do in UNIX?
What are grep patterns?
What is the command to find hidden files in the current directory?
What is a command and examples?
What difference between cmp and diff commands?
What is {} in find command?
What is rmdir command?
Which unix command lists files/folders in alphabetical order?
What is the difference between cat command and more command?
How do you grep recursively?
What does grep v grep do?
how to sort the content of the file based on numeric values
Explain how to use grep command to list find the records of a file containing 10 different strings?