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...

how to use grep command to list find the records of a file
containg 10 different strings

Answer Posted / supriya

grep 'word1|word2' <filename>

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does unix .profile contains?

940


Explain how do we change file access permissions?

879


How to restrict NULL value in UNIX

1456


Explain the method of changing file access permission?

912


What is af_unix?

810


How does unix operating system works?

907


What is grep|sort give example?

841


Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?

818


How does the kernel differentiate device files and ordinary files?

973


Which data structure is used to maintain the file identification?

908


How do I grep recursively in unix?

897


briefly describe the shell's responsibilities?

1200


Is unix a language?

832


What are the hidden files in unix?

1021


What does a pipe(|) do?

848