ls <path> | ?{$_.Name -match "^$"}
is shorthand for
Get-Child <path> | Where-Child {$_.Name -match "^$"}
in powershell.
Versus
perl -le"foreach (<path>){if(m/^$/){print $_ } }"
ls <path> | ?{$_.Name -match "^$"}
is shorthand for
Get-Child <path> | Where-Child {$_.Name -match "^$"}
in powershell.
Versus
perl -le"foreach (<path>){if(m/^$/){print $_ } }"