* Select-Objectでリスト操作 [#rb9734d1]

** 先頭からN行だけ選択 [#ca03bf75]
 ps | select -First 2

- UNIX Shellの head -2 相当

** 末尾からN行だけ選択 [#g6b4170b]
 dir *.txt | select -Last 2

- UNIX Shellの tail -2 相当

** 先頭からN行スキップしてそれ以降を選択 [#e26f94ef]
 gc test.txt | select -Skip 2

- 1,2行目をスキップして、3行目以降を選択
- UNIX Shellの tail -n +3 相当

** 参考 [#td5b19d9]
- https://technet.microsoft.com/en-us/library/ee176955.aspx
- https://ss64.com/ps/select-object.html

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS