PowerShell 3.0에서 Where-Object 구문이 단순해졌다


Version 1.0/2.0에서는 Get-Childitem | Where-Object {$_.length -gt 300kb}

Version 3.0에서는 Get-Childitem | Where-Object -Property Length -gt 300kb

즉, {$_. }을 사용하지 않아도 된다는 것이다.

Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s