Complete Guide to PowerShell Punctuation
Quick as you can, can you explain what each of these different parentheses-, brace-, and bracket-laden expressions does? ${save-items} ${C:tmp.txt} $($x=1;$y=2;$x;$y) (1,2,3 -join ‘*’) (8 + 4)/2 $hashTable.ContainsKey($x) @(1) @{abc=’hello’} {param($color=”red”); “color=$color”} $hash[‘blue’] [Regex]::Escape($x) [int]”5.2″ When you’re reading someone else’s PowerShell code, you will come across many of these constructs, and more. And you know […]