Give a regular expression that finds two things, try to
come up with regular expressions that find each
individually using "egrep" command?
Answer Posted / linuxdemon(vjsujay@gmail.com)
vjsujay@vjsujay-desktop:~/test$ cat jsk
cake
coke
vjsujay@vjsujay-desktop:~/test$ egrep 'c(a|o)ke' jsk
cake
coke
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What difference between cmp and diff commands?
How do you grep recursively?
How to use grep command to list find the records of a file containing 10 different strings?
What is grep and how do you use it?
What is .sh file?
hw will u use awk in replacing cahrs and files
What do chmod, chown, chgrp commands do?
Is it inbetween or in between?
What is ‘ps’ command for?
Enumerate some of the most commonly used network commands in unix?
Is grep faster than awk?
Is ‘du’ a command? If so, what is its use?
Why is it called a shebang?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the first character of the output in ls l command?