If your grep -i does not work, try using the tr command to convert the output of your file to lowercase and then pass it to standard grep with what you are looking for. (it sounds complicated, but the actual command that I have provided to you is not!).
Note that the tr command does not modify the contents of the source file, but simply converts it immediately before sending it to grep.
1. Here is how you can do it in a file
tr '[:upper:]' '[:lower:]' <your_file.txt|grep what_ever_you_are_searching_in_lower_case
2.or in your case, if you just echo something
echo "ABC"|tr '[:upper:]' '[:lower:]' | grep abc
CPU 100 Jan 09 '13 at 18:23 2013-01-09 18:23
source share