Re:Introducing nushell
by j88439h84 on Friday August 23, 2019 @08:03PM
(#20784074)
I agree objects are way better than text for manipulating structured data. Python is great at this, so I use Mario to do it in the shell. https://github.com/python-mario/mario
For example, to sort filenames by length
$ ls | mario apply 'sorted(x, key=len)' chain
doc
src
bench
extra
AUTHORS
LICENSE
For example, to sort filenames by length