These comments here about more or less clever text processing tools, each with their own syntax, feel like archaic hacks. Using something like Nushell or PowerShell makes this trivial.
E.g. for the `ps aux` example, using PowerShell, selecting a certain column:
gps | select id
The output of gps is an array of objects. Selecting a property does this for all elements in the array.
E.g. for the `ps aux` example, using PowerShell, selecting a certain column:
The output of gps is an array of objects. Selecting a property does this for all elements in the array.