1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-16 11:45:04 +02:00

add list syntax example in for powershell

This commit is contained in:
Renze Yu
2018-11-08 10:48:33 +08:00
committed by GitHub
parent 76e5f436df
commit d7cd776eee

View File

@@ -68,6 +68,7 @@ $aString="Some string"
# Or like this:
$aNumber = 5 -as [double]
$aList = 1,2,3,4,5
$anEmptyList = @()
$aString = $aList -join '--' # yes, -split exists also
$aHashtable = @{name1='val1'; name2='val2'}