Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Using Tabs in PowerShell

$
0
0

Summary: Learn about creating tabs in Windows PowerShell by using the `t.

Question: How would I use the `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”.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>