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

What is the use of find command in unix?

575


How can you see the command line history?

580


Explain command to display different lines that are found when compare two files?

676


What is used to type command?

539


What does 'mkdir' command do in UNIX?

655






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

591


Who invented grep?

649


What are the unix commands?

552


What does awk stand for?

602


How do I use grep to search for a file?

578


What is the behavioural difference between cmp and diff commands?

670


What is $0 bash?

642


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

636


How do I use grep to find a file?

577


Can you enlist some commonly used network commands?

596