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

How to find $ai_serual resolved path by using unix

1842


What is pipe command in unix?

1364


Who command in unix operating system?

1191


What does this command do? Cat food 1 > kitty

1637


What does the command ' $who | sort –logfile > newfile' do?

1325


What's a command word?

1247


What is time_t?

1163


What are the unix commands?

1154


What is the comma to show the space allocation of files?

1135


What does touch command do in unix?

1479


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

1268


What are awk commands?

1227


Name the various commands that are used for the user information in unix.

1133


hw will u use awk in replacing cahrs and files

3296


What do chmod, chown, chgrp commands do?

1352