Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Case Insensitive Search String

Status
Not open for further replies.

gsdcrazy

Programmer
Sep 2, 2002
31
US
Gurus,

I have been very successful using the following command to find files with a particular string in them, but have come into a situation where I need to search for a case insensitive string. There is no consistency as to how the string is typed in the files. Any ideas how I can modify this to make it case insensitive or any other search commands that would do the job?

I use two versions depending upon the string:
find directory -type f -print | xargs grep string
find directory -type f -print | xargs grep "string"

find sql -type f -print | xargs grep agencyagreementsload.Agreements_load

find sql -type f -print | xargs grep "I'm here"

Your help is greatly appreciated.

Thanks,
gsdcrazy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top