in reply to substitute 4 spaces instead of a tab

The expression \\t in your substitution means one literal backslash, followed by a small t. You want \t which is the escape character for tab.

Next time just use expand from GNU coreutils, also available for Windows.

  • Comment on Re: substitute 4 spaces instead of a tab