Case Insensitive Grep Search
To perform a grep search that ignores case, or is case insensitive, use the -i
option (or --ignore-case
). The grep command is case sensitive by default.
grep -i bob file.txt
Like this? Follow me ↯
Tweet Follow @pfreitagCase Insensitive Grep Search was first published on August 01, 2005.
If you like reading about grep, or bash then you might also like:
- Counting IP Addresses in a Log File
- Recursively Counting files by Extension on Mac or Linux
- The 15 Essential UNIX commands