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 ctrl d?
What is the functionality of a top command?
What does sed command do in unix?
Enumerate some of the most commonly used network commands in unix?
Can you enlist some commonly used network commands?
What is .sh file?
Is it inbetween or in between?
What is the comma to display different lines that are found when compare two files?
Can you explain a little bit about command substitution?
What is the use of find command in unix?
How do you repeat a command in terminal?
What is command substitution?
Is grep faster than awk?
How many unix commands are there?
What is ‘ps’ command for?