Featured image of post [PowerShell] 12. Where-Object — 필터링

[PowerShell] 12. Where-Object — 필터링

Where-Object로 파이프라인 객체를 조건에 맞게 거르는 법, 스크립트블록 구문($_)과 간소화 구문(-Property -operator value) 두 가지 문법의 차이, 자주 쓰는 비교 연산자를 정리한 챕터다.

Featured image of post [PowerShell] 13. Select-Object — 속성 선택과 투영

[PowerShell] 13. Select-Object — 속성 선택과 투영

Select-Object로 객체의 특정 속성만 뽑거나 First/Last/Unique/Skip으로 개수를 제한하는 법, -ExpandProperty로 중첩 속성을 펼치는 법, 계산된 속성(Label/Expression)으로 새 열을 만드는 법을 정리한 챕터다.

Featured image of post [PowerShell] 14. Sort-Object — 정렬

[PowerShell] 14. Sort-Object — 정렬

Sort-Object로 파이프라인 객체를 속성 기준으로 정렬하는 법과 -Descending, 다중 속성 정렬(해시테이블로 속성별 오름차순/내림차순 조합), -Unique로 중복 제거, -Top/-Bottom 최적화를 정리한 챕터다.

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·리다이렉션 연산자와 근본적으로 다른 지점을 정리한 챕터다.