こんなの作らないで、unixのコマンドを普通に使えるようにしてくれりゃいいのに...
> Get-Content C:\var\log\nlog-own-2017-11-27.log -wait -tail 10 -Encoding UTF8
> Set-ItemProperty .\test.txt -Name CreationTime -Value "2018/06/12 15:30:00"
> Set-ItemProperty .\test.txt -Name LastWriteTime -Value "2018/06/12 15:30:00"
type target.txt | sls "foo" | sls "bar" | % { $_.ToString() } > hoge.txt
select-string [検索文字列] | select Line | Out-String -Width 4096
select-string [検索文字列] | select Line | Format-Table -Property * -AutoSize | Out-String -Width 4096
(gc [ファイル名] | ? {$_.trim() -ne "" }
(Get-Content [ファイル] | Measure-Object).Count
Get-Content “.\list.txt” | Select-Object {$($_-split(“,”))[0]}
cat hoge.txt | group $_ | select name,count