UNIX - How do I grep for a TAB space ?

In order to grep for a TAB you would need to you use the following syntax,

[root@Linux~]# grep $'\t' file.txt

Tags: UNIX

About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as an SDN/NFV Solutions Architect and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001