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

What is the significance of $#?

1034


What exactly is a shell?

1021


How do I read a .sh file?

1040


What is meant by $1 in shell script?

917


Explain how you Automate your application using Shell scripting.

2260


How important is shell scripting?

998


What is bash coding?

873


How would you compare the strings in a shell script?

936


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

1425


What is basename in shell script?

1014


What is an inode block?

1005


What is the syntax of "nested if statement" in shell scripting?

1047


What is bash shell command?

972


What can scripts do?

1058


How can I set the default rwx permission to all users on every file which is created in the current shell?

1380