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 unix command to confirm a remote host is alive or not?
Enumerate some of the most commonly used network commands in unix?
What is the use of the tee command?
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 command substitution?
Write a command that will display files in the current directory, in a colored, long format.
What does the command ' $who | sort –logfile > newfile' do?
How can we use grep command in unix?
What does awk stand for?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Who wrote grep?
What is the pipe command?
How do I use grep to find a file?
What is the comma to display different lines that are found when compare two files?
What does sed command do in unix?