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

grep command is used to search a file for keywords.
grep 'keyword' file

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

2265


Explain how to use grep command to list find the records of a file containing 10 different strings?

1067


how to sort the content of the file based on numeric values

1779


Why is it called grep?

1026


How do I search for a file in unix command?

1018


Which unix command lists files/folders in alphabetical order?

1751


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1312


What is the use of tee command?

1156


What is unix command?

1256


Enlist some filename manipulation commands in unix.

1158


What does sed command do in unix?

1198


What is the nmap command?

1179


Which command is used to delete all files in the current directory and all its sub-directories?

1254


How to find $ai_serual resolved path by using unix

1745


Explain command to view process running?

1126