Questions about: regex

grep is using regular expressions as defined by POSIX. For whatever reasons POSIX have not defined \t as tab. You have several alternatives: tell grep to use the regular expressions as defined by perl (perl has \t as tab): grep -P "\t" foo