Give a regular expression that finds two things, try to
come up with regular expressions that find each
individually using "egrep" command?

Answer Posted / shammi

Suppose yu have file name k.txt

naf@warsteiner:~:>cat k.txt
My name is harish
My name is Mark

Now naf@warsteiner:~:>egrep '(harish|Mark)' k.txt
My name is harish
My name is Mark

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ctrl d?

684


What is the functionality of a top command?

704


What does sed command do in unix?

656


Enumerate some of the most commonly used network commands in unix?

704


Can you enlist some commonly used network commands?

681






What is .sh file?

727


Is it inbetween or in between?

658


What is the comma to display different lines that are found when compare two files?

686


Can you explain a little bit about command substitution?

709


What is the use of find command in unix?

661


How do you repeat a command in terminal?

705


What is command substitution?

734


Is grep faster than awk?

647


How many unix commands are there?

710


What is ‘ps’ command for?

721