On Mar 7, 10:20 am, Peng Yu <pengyu...@gmail.com> wrote: > My grep is aliased to "grep --color=auto". > > I then use grep "<TAB>", where <TAB> is a tab character. But the > result is not colored. How to make the tabs colored?
If you grep for a space or a newline, they don't get highlighted either. That's just the way it works. To colorize "whitespace" grep would have to set the background color. Also, as Bob said, this is a Bash list, not a grep one.