Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 difference between cmp and diff commands?

1240


How do you grep recursively?

1054


How to use grep command to list find the records of a file containing 10 different strings?

1086


What is grep and how do you use it?

1045


What is .sh file?

1106


hw will u use awk in replacing cahrs and files

3178


What do chmod, chown, chgrp commands do?

1221


Is it inbetween or in between?

997


What is ‘ps’ command for?

1132


Enumerate some of the most commonly used network commands in unix?

1102


Is grep faster than awk?

984


Is ‘du’ a command? If so, what is its use?

1090


Why is it called a shebang?

1086


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1142


What is the first character of the output in ls l command?

1155