<# 複行コメント
sls -Pattern をファイル渡しする場合、空行が含まれているとErrorとなる。
空行を除去する方法として思いつくものを記述する。
#>
PS>1,"",3,"",5,""+7..9
1
3
5
7
8
9
PS>(1,"",3,"",5,""+7..9).Where({$_ -match "."})
1
3
5
7
8
9
PS>(1,"",3,"",5,""+7..9).Where({$_ -match "^$"})
PS><#
>> .Where({ $_ -match "." })
>> .Where({ $_ -match "\S" })
>> .Where({ !($_ -match "^$") }) *1
>> .Where({ $_ -notmatch "^$" }) *2
>> *1 と *2 は文字数が同じ。視認なら -notmatch がいいかも
>> multiple lines comment END #>
PS>