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?

Answer Posted / vasanth

grep: Find lines in a file that match a regular expression

syntax: grep [options] pattern [files]

Useful Options : -v, -l, -L, -c, -n, -b, ,-i

-v Print only lines that donot match the regular expression
-l Print only names of files that contains matching
lines,not the line themseleves

for furthur information
pls ref. linux pocket guide by Daniel J. Barrett (page-71)

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can shell script run on windows?

1068


What language is shell scripting?

1028


Print the 10th line without using tail and head command.

2177


What does echo $0 do?

977


Which scripting language is best for automation?

960


How can you get the value of pi till a 100 decimal places?

970


What is the difference between break and continue commands?

1102


What is option in shell script?

1018


What are the types of script?

1175


Why do we use shell scripting?

996


How do you create a shortcut in linux?

1202


What is an inode block?

1055


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

984


What can you do with powershell?

1140


State the advantages of shell scripting?

1052