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 / niranjan

Gud command egrep but it not available in all unix flaviours.

grep -e option do the same as egrep

syntax:-
egrep 'pattern1|pattern2|pattern3' filename

grep -e 'pattern1' -e 'pattern2' -e 'pattern3' filename

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1219


How do I use grep to search for a file?

1101


How do I run a whois command?

1201


What does pipe () return?

1127


What are the dos commands?

1308


What is {} in find command?

1154


Using unix command how to display no of records in oracle?

1207


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

1283


What is the pipe command?

1242


What is awk good for?

1190


What is the difference between awk and grep?

1332


What does touch command do in unix?

1476


What are grep patterns?

1148


Describe the zip/unzip command using gzip.

1224


What's a command word?

1246