How to grep case insensitive $ grep -i [string] [file] Command grep Description Search for a string ignoring case distinctions (e.g. matches 'Error', 'error', 'ERROR'). Deep Dive -i stands for Ignore case. Related How to grep recursively in a directory How to exclude lines with grep