Created
March 6, 2016 21:55
-
-
Save aws-scripting-guy/f29b209074b61f371383 to your computer and use it in GitHub Desktop.
powershell script - array as param
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[array]$region = @( "eu-west-1") | |
) | |
foreach ($item in $region) { | |
echo $item | |
} | |
#PS> .\array_as_param.ps1 us-east-1,eu-west-1 | |
#us-east-1 | |
#eu-west-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment