January 27th, 2016

PowerTip: Use PowerShell to create repeating letters

Doctor Scripto
Scripter

Summary: Learn how to easily create duplicate letters by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily create a specific number of letters in a repetitive fashion?

Hey, Scripting Guy! Answer To create repetitive letters, all you need to do is to “multiply” them, for example:

PS C:\> "a"*5

aaaaa

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.

Feedback