Unix – grep a tab in UNIX

grepunix

How do I grep tab (\t) in files on the Unix platform?

Best Answer

If using GNU grep, you can use the Perl-style regexp:

grep -P '\t' *