Showing category results for Windows PowerShell

Apr 17, 2016
Post comments count0
Post likes count1

PowerTip: Use PowerShell to display a percentage that has two decimal places

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to display a percentage as a two place number.  How can I use Windows PowerShell to display a number as a percentage that has two decimal places?  Use the -f format specifier, and specify a pattern as “{0:p2}”. On the other side of the -f format specifier, perform your percentage calculation. Here is an example: PS ...

Scripting Guy!Windows PowerShellPowerTip
Apr 15, 2016
Post comments count0
Post likes count0

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Doctor Scripto
Doctor Scripto

Summary: Learn how to use a regular expression pattern to remove non-alphabetic characters from a string by using Windows PowerShell.  How can I use Windows PowerShell to remove non-alphabetic characters from a string?  To remove nonalphabetic characters from a string, you can use the -Replace operator and substitute an empty string ‘’ for the non...

Scripting Guy!Windows PowerShellPowerTip
Apr 15, 2016
Post comments count0
Post likes count0

Additional resources for text analysis by using PowerShell

Doctor Scripto
Doctor Scripto

Summary: This is a summary of some of the additional resources for working with text and Windows PowerShell. Good day. Microsoft Scripting Guy, Ed Wilson, is here. So, here's the deal. We are going along and decide to write a simple Windows PowerShell script. Before we know it, the thing has morphed into dozens of lines. And, also before we know i...

Scripting Guy!Windows PowerShellscripting techniques
Apr 14, 2016
Post comments count0
Post likes count0

Calculate percentage character frequencies from a text file by using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to calculate the percentage of how often a character appears in a text file. This is the fifth post in a multi-part series of blog posts that deal with how to determine letter frequency in text files. To fully understand this post, you should read the entire series in order. Here are the posts in the s...

Scripting Guy!Windows PowerShellFormatting output
Apr 13, 2016
Post comments count0
Post likes count0

Compare the letter frequency of two text files by using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to compare the letter frequency of two different text files. This is the fourth post in a multi-part series of blog posts that deal with how to determine letter frequency in text files. To fully understand this post, you should read the entire series in order. Here are the posts in the series: ...

Scripting Guy!Windows PowerShellscripting techniques