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 awk used for?
Why is it called a shebang?
What are some command words?
What is the comma to show the space allocation of files?
Explain ‘system calls’ with respect to unix commands?
Who command in unix operating system?
What is the use of tee command?
What does grep v do?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain mount and unmount 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)?
Why is grep called grep?
What are awk commands?
Which command is used to create a directory?
What does the metacharacter mean?