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 최적화를 정리한 챕터다.