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 are the different communication commands available in the shell?

1008


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3520


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

1011


How do I open the shell in cmd?

1200


Why is used in shell scripting?

1044


How do I run a shell script in powershell?

1173


What is mac default shell?

1141


how to get part of string variable with echo command only?

1066


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

1052


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1427


I want to connect to a remote server and execute some commands, how can I achieve this?

1056


Is shell a scripting language?

1059


What is shell chemistry?

1024


What are "c" and "b" permission fields of a file?

1063


What is sed in shell script?

1098