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

Which command is used to copy files?

554


What does the metacharacter mean?

608


Enlist some filename manipulation commands in unix.

546


How to display no of records in oracle using unix command?

587


What is ‘ps’ command for?

613






What are reported commands?

562


What does the md command do?

567


How do I delete files from command prompt?

549


What is awk used for?

616


What do chown command do?

530


How do I use grep to search for a file?

578


What is awk good for?

581


What does grep v grep do?

547


How to find $ai_serual resolved path by using unix

1022


What are grep patterns?

574