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

grep command is a utility which helps in searching pattern
from the given file.

example

grep "pattern" /home/username/somefile.txt

it ll search all lines in the file somefile.txt and will
print the line which contains pattern.

there are many options as
-v = invert
-i = ignorecase
-c = count
-l = filename
-r = recursive

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1013


What is another name for a bash shell script that you might see?

1512


what is info area how many types?

2825


How do I run a shell script on a mac?

1187


How to find duplicate record in file using shell script?

1450


Why do we use shell scripting?

1038


What is meant by $1 in shell script?

996


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1144


How do I read a .sh file?

1177


What are the different commands available to check the disk usage?

1057


What is echo in shell?

1156


What is echo $shell?

1130


What are script files?

1072


What is the difference between scripting and coding?

1097


What does echo mean in scripting?

1052