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
What is the general format of unix command syntax?
What does this command do,"$more readme.txt“?
How do I search for a file in unix command?
What is the command to view process running?
hw will u use awk in replacing cahrs and files
What is the unix command to confirm a remote host is alive or not?
Is it inbetween or in between?
What is s and g in sed command?
What is grep command in unix with examples?
Can you enlist some commonly used network commands?
Which command is used to delete all files in the current directory and all its sub-directories?
Explain ‘system calls’ with respect to unix commands?
What command is used to check the current users?
What is awk command used for?
What does awk stand for?