August 6th, 2012

PowerTip: Using Tabs in PowerShell

Doctor Scripto
Scripter

Summary: Learn about creating tabs in Windows PowerShell by using the t</strong>.<p><b>Question</b>: How would I use the <b>t in a script to produce a tab?

Answer: “`thi” Question: That syntax above is ugly. What happens if I put a space in it like this: “`t hi”?

Answer: If you include a space in the line like “`t hi”, then you will tab over one tab stop and one additional space. Question: Is the `t command such as “`thi” case sensitive?

Answer: Yes. It is one of the few things that are case sensitive in Windows PowerShell. If you use the `t as follows, you produce Thi on the line: “`Thi”.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.