| > cat somefile.txt | sort | uniq > output.txt, in cmd.exe type somefile.txt | sort /unique > output.txt or in powershell type file.txt | sort -unique Powershell is obscenely powerful, it is equal to anything Bash can do plus: 1. It sends objects instead of streams, so instead of relying on fixed width output and string splitting, you can specify which column(s) of output you want from a tool directly 2. It can pull data from all sources of sources, including databases, WMI, COM sources and more. 3. Fully plugged into automation for servers, rich auto-complete, and a native ecosystem that is designed to all work together. 4. It can call into .NET libraries But even cmd.exe can handle outputting text and sorting it! |
Yeah, modern shells should stop pretending that everything is text. That's ridiculous. Powershell is doing a good job here.
As for power, powershell is to weak compared to Python or Ruby, too few libraries and fancy stuff, at least on unices. Maybe it could compete with Racket, but Racket is a much nicer language IMHO.