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


Please Help Members By Posting Answers For Below Questions

Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

884


What are filter commands in unix?

636


What is the size of time_t?

763


What is the use of the command 'ls -x chapter[1-5]' ?

770


What does grep v do?

643






What are the commands in UNIX to list the files in a Directory?

695


How do I run a bash script?

671


What is the difference between cat and more command?

759


What do know about tee command and its usage?

704


What is updatedb?

680


What is pipe command in unix?

787


How do you grep a case insensitive?

622


What does #!/ Bin sh do?

671


Who command in unix operating system?

736


What is the comma to display different lines that are found when compare two files?

688