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


Please Help Members By Posting Answers For Below Questions

What do chmod command do?

803


Name the unix command to find how many days the server has been up.

851


Explain ‘library functions’ with respect to unix commands?

808


What is the use of the tee command?

804


What does awk stand for?

788


How do I clear my terminal history?

790


Why is grep called grep?

981


What are bash commands?

785


Name the general commands in using unix os for a beginner?

794


What does grep v grep do?

759


What is $0 bash?

879


Who command in unix operating system?

850


How do you grep a case insensitive?

721


What's a command word?

792


Why is it called grep?

742