728x90 AdSpace

Latest News
Saturday, June 22, 2013

Grep Command - Linux Command

Grep Command

Grep command is one of the powerful linux commands. Grep command is one of the file commands. 

In this article i am going to discuss about the grep command.


Command :  grep

Usage : To Search a given input string in a file

Syntax : grep string filename

Example : grep regno classdetails

Working : The above command will search for the string regno in the file classdetails

CASE INSENSITIVE


The above stated search for the string regno in the file classdetails is case sensitive search.

In order to do case insensitive search -i is used in the command

Command : grep -i

Usage :  Search for the string in a file - Case Insensitive

Syntax : grep -i string filename

Example : grep -i regno classdetails

Working : The above Command will search for the string "regno" irrespective of the case used.




Since grep command has got lot of options, i don't like to confuse you guys with all the options in a single article.

Will share other options in the upcoming post..:)

Have a great day and Have a happy week end dear readers and friends..:)



Praveen Kumar Rajendran

Chennai.



  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: Grep Command - Linux Command Rating: 5 Reviewed By: Praveen Kumar Rajendran