Hacker News new | past | comments | ask | show | jobs | submit login

This kind of thing could be done in Unix as well.

In FreeBSD, libxo[0] is integrated into a lot of it's utilities, allowing this same type of power.

For example:

  ps aux --libxo json
Or:

  ps aux --libxo xml
At this point you still have plain text, but it now has a well-defined structure that can be interpreted by other utilities. With JSON output you can use a tool like `jq` to slice and dice the data. With XML output you could run it through an XSLT to transform it into whatever you want - this definitely moves outside the realm of simple though.

This is definitely not on the same level as what PowerShell does, but it shows how something similar could exist in the Unix world.

[0] https://www.freebsd.org/cgi/man.cgi?query=libxo&sektion=3




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: