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
Write a command to display a file’s contents in various formats?
What is the command to view process running?
How many unix commands are there?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the comma to show the space allocation of files?
Differentiate cat command from more command.
What command is used to check the current users?
What is the use of the tee command?
How to use grep command to list find the records of a file containing 10 different strings?
What is time_t?
What is difference between grep and find command in unix?
What is s and g in sed command?
Is command prompt unix?
What is the use of awk command in unix?
What is merge command in unix?