Unix Technical Forum

case-insensitive "grep"?

This is a discussion on case-insensitive "grep"? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Is there any way to grep for a string with total disregard to case? Say, "grep test /tmp/dummy" should ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 02:55 PM
Jennifer Smith
 
Posts: n/a
Default case-insensitive "grep"?

Is there any way to grep for a string with total disregard to case?
Say, "grep test /tmp/dummy" should return all occurences of "Test", "test",
TeST" and all other possible variations?

Thanks
Jen

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 02:55 PM
Thomas Overgaard
 
Posts: n/a
Default Re: case-insensitive "grep"?


Jennifer Smith wrote :

> Is there any way to grep for a string with total disregard to case?


From 'man grep':
-i, --ignore-case
Ignore case distinctions in both the PATTERN and the input files.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 02:55 PM
Jennifer Smith
 
Posts: n/a
Default Re: case-insensitive "grep"?

Thomas Overgaard wrote:

>
> Jennifer Smith wrote :
>
>> Is there any way to grep for a string with total disregard to case?

>
> From 'man grep':
> -i, --ignore-case
> Ignore case distinctions in both the PATTERN and the input files.


Whoops, silly me missed that. Thanks a lot

Jenni
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 02:55 PM
ray
 
Posts: n/a
Default Re: case-insensitive "grep"?

On Mon, 27 Sep 2004 15:03:07 +0000, Jennifer Smith wrote:

> Is there any way to grep for a string with total disregard to case?
> Say, "grep test /tmp/dummy" should return all occurences of "Test", "test",
> TeST" and all other possible variations?
>
> Thanks
> Jen


grep -i

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com