Showing results for Arrays - Scripting Blog [archived]

Apr 11, 2016
0
1

How to skip the beginning and ending of a file by using PowerShell

I_am_mr_ed
I_am_mr_ed

Summary: Learn how to skip the beginning and ending portions of a text file by using Windows PowerShell in this article by the Microsoft Scripting Guy Ed Wilson. This is the second 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 seri...

Scripting Guy!Windows PowerShellscripting techniques
Nov 6, 2015
0
0

PowerTip: Find if Variable Is Array

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to find if a variable is an array.  How can I use Windows PowerShell to find if a variable contains an array?  Use the –is operator, and test to see if it is a type of [array], for example: $a = 1,2,4,5,6,7 $a -is [array]

Scripting Guy!Windows PowerShellPowerTip
Nov 6, 2015
0
0

Use PowerShell to Find Palindromes

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using Windows PowerShell to find palindromes. Microsoft Scripting Guy, Ed Wilson, is here. I enjoy playing around with words. I like words that sound similar to each other, such as to, too, and two. I also like words that look alike, and sound alike but have different meanings depending on th...

Scripting Guy!getting startedStrings
Nov 1, 2015
0
0

Weekend Scripter: Exploring PowerShell Arrays

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about Exploring Windows PowerShell arrays. Microsoft Scripting Guy, Ed Wilson, is here. One of the problems I had with Windows PowerShell when I first learned it was handling arrays. Why? Because they were so easy. Well, they are easy, but they are also a bit confusing. Why? Because Get-Member seem...

Scripting Guy!Windows PowerShellWeekend Scripter
Oct 7, 2015
0
0

PowerTip: Concatenate String Array with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to concatenate elements of a array.  How can I use Windows PowerShell to concatenate the elements of a string array?  Use the static Concat method from the String class, for example: $a = "string a" $b = "string b" $arr = @($a,$b) [string]::Concat($arr)

Scripting Guy!Windows PowerShellscripting techniques