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 the general format of unix command syntax?

687


What does this command do,"$more readme.txt“?

687


How do I search for a file in unix command?

544


What is the command to view process running?

572


hw will u use awk in replacing cahrs and files

2726






What is the unix command to confirm a remote host is alive or not?

579


Is it inbetween or in between?

578


What is s and g in sed command?

555


What is grep command in unix with examples?

604


Can you enlist some commonly used network commands?

596


Which command is used to delete all files in the current directory and all its sub-directories?

660


Explain ‘system calls’ with respect to unix commands?

598


What command is used to check the current users?

592


What is awk command used for?

596


What does awk stand for?

603