Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

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

"I have not the slightest confidence in 'spiritual manifestations.'" -- Robert G. Ingersoll

Working...