Format-Table -AutoSize -Wrap
> 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
cat [ファイル名] | sls [検索文字列] | Out-String -Width 4096
select-string [検索文字列] | select Line | Out-String -Width 4096 select-string [検索文字列] | select Line | Format-Table -Property * -AutoSize | Out-String -Width 4096
Select-String -Path "*.txt" -Pattern "hello","world"
Select-String -Path "*.txt" -NotMatch -Pattern "hello","world"
(gc [ファイル名] | ? {$_.trim() -ne "" }
(Get-Content [ファイル] | Measure-Object).Count
Get-Content “.\list.txt” | Select-Object {$($_-split(“,”))[0]}
cat hoge.txt | group $_ | select name,count