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

What is the syntax of grep command and what is its use?

Answer Posted / ankita

grep is used to find the patterns inside files.

grep -options "pattern" file_name

grep -i "hello" test_file

this is search for "hello"(case doesn't matter as we have used -i) in test_file

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are filter commands in unix?

1129


What command is used to switching between users in unix?

1035


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

1118


Explain ‘library functions’ with respect to unix commands?

1128


What is pipe command in unix?

1243


What are awk commands?

1106


How do I clear my terminal history?

1101


Can you enlist some commonly used network commands?

1061


How can you see the command line history?

1087


What is the difference between grep and grep?

1071


What does the “echo” command do?

1105


Give the command for finding the current date.

1048


How does the system know where one command ends and another begins?

2186


What does this command do? Cat food 1 > kitty

1537


What is awk good for?

1099