Forgot your password?
typodupeerror

Comment: Re:It would be good to have optional GUI (Score 1) 780

by RangerFish (#38764394) Attached to: Windows Admins Need To Prepare For GUI-Less Server
You should learn more about what you're mocking. The long names are for scripts and people learning to use the shell.

Get-ChildItem -Path $home | Where-Object -FilterScript { $_.Length -gt 2KB }

or

ls $home | ?{ $_.Length -gt 2KB }

In v3.0, it gets shorter because you don't need the { } or the $_ for the filter expression. So it's more like this:

ls $home | ? Length -gt 2KB

I won't try to claim it's perfect because it's not, but it's better than Bash (though it owes most of its heritage to Bash et al) because you don't have to drop in awk and sed commands to parse the output of the last command in the pipeline. Though pointing that out will probably get me flamed.

Sigh.

Comment: Re:OO shell is a POS (Score 1) 780

by RangerFish (#38764202) Attached to: Windows Admins Need To Prepare For GUI-Less Server
PowerShell has the concept of pipes, and takes them a bit further than *nix because the stuff that moves along the pipeline is an object. You don't need to parse it, because you can query against its properties. Get-Process | Sort-Object -desc cpu | Select-Object -First 10 Get a list of processes, sort by the CPU property on each one, then get the first 10 in the list

Time is nature's way of making sure that everything doesn't happen at once. Space is nature's way of making sure that everything doesn't happen to you.

Working...