What I love about PowerShell is that it allows you to pipe structured data between tools without needing to 'screen scrape' the output like on Linux.
I still don't use it on Linux but I do think it's a big step forward for scripting.
I still don't use it on Linux but I do think it's a big step forward for scripting.
For example:
$ w --libxo json|json_pp
{
"uptime-information" : {
"days" : 46,
"hours" : 22,
"load-average-1" : 0.19,
"load-average-15" : 0.13,
"load-average-5" : 0.12,
"minutes" : 11,
"seconds" : 34,
[...]
Obviously it's not as extensive as PowerShell, but it definitely gets rid of screen-scraping.[0] https://www.freebsd.org/cgi/man.cgi?query=libxo&sektion=3&fo...