How to insert a tab character into Putty for Linux

If you’re like me, you’ve noticed that if you’re trying to grep for a tab character, the following won’t work:

grep "\t" file.txt

The solution is to use a literal tab character, but it’s not quite so simple. You can’t insert a tab character just by hitting the tab button or by pasting one in. You need to hit Ctrl+V first:

So to type a tab in the putty console:

  • Ctrl+V
  • [TAB] character


Leave a Reply

Your email address will not be published. Required fields are marked *