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 do chmod, chown, chgrp commands do?
What command will change your prompt to myprompt?
Which unix command to make a new directory?
Differentiate cmp command from diff command.
How do you repeat a command in terminal?
What is pipe command in unix?
Why is shebang used?
What does the command ' $who | sort –logfile > newfile' do?
Explain ‘library functions’ with respect to unix commands?
What are awk commands?
Name the unix command to find how many days the server has been up.
What are bash commands?
Which command is used to delete all files in the current directory and all its sub-directories?
What is grep and how do you use it?
What is the command to find hidden files in the current directory?