Featured image of post [PowerShell] 16. Group-Object — 그룹화

[PowerShell] 16. Group-Object — 그룹화

Group-Object로 파이프라인 객체를 속성 값 기준으로 그룹화하는 법, -NoElement로 개수만 세는 법, -AsHashTable로 키-값 컬렉션을 만드는 법, Format-Table -GroupBy와의 차이를 정리한 챕터다.

Featured image of post [PowerShell] 17. Measure-Object — 집계·통계

[PowerShell] 17. Measure-Object — 집계·통계

Measure-Object로 파이프라인 객체 개수를 세거나 Sum/Average/Maximum/Minimum/StandardDeviation을 계산하는 법, 텍스트 객체의 -Line/-Word/-Character 집계 모드 차이를 정리한 챕터다.

Featured image of post [PowerShell] 18. Tee-Object — 파이프라인 분기

[PowerShell] 18. Tee-Object — 파이프라인 분기

Tee-Object로 파이프라인 결과를 파일이나 변수에 저장하면서 동시에 다음 명령으로 흘려보내는 법과 -FilePath/-Variable 매개변수, Out-File·리다이렉션 연산자와 근본적으로 다른 지점을 정리한 챕터다.

Featured image of post [PowerShell] 19. Compare-Object — 객체 비교(diff)

[PowerShell] 19. Compare-Object — 객체 비교(diff)

Compare-Object(별칭 diff)로 두 컬렉션의 차이를 비교하는 법, SideIndicator(<=, =>, ==)의 의미, -Property로 특정 속성만 비교하는 법, -IncludeEqual/-PassThru 매개변수를 정리한 Part 2 마지막 챕터다.

Featured image of post [PowerShell] 22. -split/-join 연산자

[PowerShell] 22. -split/-join 연산자

PowerShell -split 연산자로 문자열을 정규식 구분자 기준으로 나누는 법과 -Max-substrings/옵션 매개변수, -join 연산자로 배열을 하나의 문자열로 합치는 법, 단항/이항 형태의 우선순위 차이를 정리한 챕터다.

Featured image of post [PowerShell] 23. 타입 캐스팅과 [type] 접근자

[PowerShell] 23. 타입 캐스팅과 [type] 접근자

[int], [string] 같은 PowerShell 타입 캐스팅 문법과 암시적/명시적 변환 규칙, -is/-isnot/-as 타입 연산자, 숫자 반올림·배열-문자열 변환처럼 자주 놀라는 변환 규칙을 정리한 챕터다.