> 주제
배열 사용하기
> 방법
문자 배열
$data = @('Zero','One','Two','Three')
PS C:\> $data = @('Zero','One','Two','Three')
PS C:\> $data.Count
4
PS C:\> $data
Zero
One
Two
Three
숫자 배열
$data = @(1, 2, 3, 4, 5)
이외에 다양한 방법으로 표현 할 수 있다.
> 출처
배열에 대해 알고 싶은 모든 것
https://learn.microsoft.com/ko-kr/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.2
'etc2 > Powershell' 카테고리의 다른 글
[Powershell] split 사용하기 (0) | 2023.08.28 |
---|