The issue I have with powershell is the extreem verbosity.
But that's just a personal thing and not something that I can realy blame the language.
But that's just a personal thing and not something that I can realy blame the language.
gci *.txt | %{ $tot += $_.length }; echo $tot
That's not more verbose than bash (one way of doing this): ls -l *.txt | awk '{ tot += $5 } END { print tot }'
So you'll see the pipeline written (in an example, for clarity), more like: Get-ChildItem *.txt | ForEach-Object { $tot += $_.length }; Write-Output $tot
But that's not how you'd usually use it; until/unless you're putting it in a script.Note that 'ls -l' and guessing that you want to total up field 5 is brittle in way that the Powershell snippet isn't, but I'm leaving that issue aside.
Pretty sure there are other dyslectics who will find that it helps them. So I guess this all depends on person to person