4 ms·
I'd agree it's a bit more to type out, but it does seem to make more sense from a readability perspective. And for those of us who didn't grow up with the UNIX
by ckozlowski 11y ago
I'd agree it's a bit more to type out, but it does seem to make more sense from a readability perspective. And for those of us who didn't grow up with the UNIX shell to understand the reasons why things were kept so short, it's a bit easier to digest. (I do appreciate why bash is so short and succulent. =)
But really, taking the above into consideration, the might in powershell comes not from the terms used, in my opinion, but how it works on things. With grep for example, you're parsing a file. If say, you wanted to filter on that more, you'd be using awk to pick out parts of the text.
In Powershell, everything's an object. Everything's already an object, you don't need to pick the file apart to isolate the date, you just filter on the date object. It's got a data type.
That makes it really powerful, in my opinion.
(Example largely pulled from "Windows Powershell in Action". I really like this book, as it goes into detail to describe /why/ things are they way they are in PowerShell, because he wrote it. =)
https://www.manning.com/books/windows-powershell-in-action-second-edition https://www.manning.com/books/windows-powershell-in-action-s...
- dpark 11y ago> but it does seem to make more sense from a readability perspective Not really, as everything is given an unreadable alias anyway, and many are given multiple aliases: Copy-Item -> copy,cp,cpi. So there are just more names to learn.
- ckozlowski 11y agoYou don't have to use the aliases though, and they don't tab complete (only the full name does) Personally, I never use them. I saw them more as a help for people coming over from bash.
- dpark 11y agoYou do have to use them unless you work alone. I regularly see PS1 files that use the various aliases, as well as the fully-named commands.