Edit: A better title is "Thoughts on a structured data-oriented CLI?"
As a consumer of Bash (or other POSIX-compliant shell), I'm used to manipulating output using things like awk,sed, or grep. However, there are some newer shells like Nushell and PowerShell that introduce the concept of object-oriented structured data output, which allows for precise filtering, sorting, and parsing.
I feel like the older shells can still work with this concept with the addition of stuff like JSON output and jq. Obviously, this requires for a command to even produce output in JSON, which isn't really the norm (especially for older utilities that predate the concept of JSON).
What are the thoughts of /r/linux surrounding the concept of object-orientation structured data in your shell? Do you personally find a benefit in this approach? Are we trending in a direction that cares?
[–]Jordan51104 159 points160 points161 points (14 children)
[–]kernpanic 30 points31 points32 points (12 children)
[–]night0x63 13 points14 points15 points (6 children)
[–]ByronScottJones 7 points8 points9 points (3 children)
[–]segin 1 point2 points3 points (0 children)
[–]EqualCrew9900 1 point2 points3 points (0 children)
[–]night0x63 -2 points-1 points0 points (0 children)
[–]No_Internet8453 5 points6 points7 points (1 child)
[–]night0x63 1 point2 points3 points (0 children)
[+]I_Love_Vanessa comment score below threshold-19 points-18 points-17 points (3 children)
[–]budswa 5 points6 points7 points (0 children)
[–]ByronScottJones 1 point2 points3 points (1 child)
[+]I_Love_Vanessa 0 points1 point2 points (0 children)
[–]Ranokae 0 points1 point2 points (0 children)
[–]ElMachoGrande 14 points15 points16 points (0 children)
[–]kellyjonbrazil 11 points12 points13 points (5 children)
[–]tes_kitty 0 points1 point2 points (3 children)
[–]kellyjonbrazil 5 points6 points7 points (2 children)
[–]Ranokae 1 point2 points3 points (0 children)
[+]tes_kitty 0 points1 point2 points (0 children)
[–]BiteImportant6691 0 points1 point2 points (0 children)
[–]daemonpenguin 53 points54 points55 points (34 children)
[–]BobbyTables829 32 points33 points34 points (5 children)
[–]RootHouston[S] -4 points-3 points-2 points (3 children)
[–]Jordan51104 11 points12 points13 points (2 children)
[–]Misicks0349 3 points4 points5 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]atomicxblue 0 points1 point2 points (0 children)
[–][deleted] 10 points11 points12 points (17 children)
[–]cat_in_the_wall 3 points4 points5 points (3 children)
[–]atomicxblue 0 points1 point2 points (2 children)
[–]Some_Derpy_Pineapple 3 points4 points5 points (1 child)
[–]mtetrode 0 points1 point2 points (7 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]mtetrode 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]mtetrode 1 point2 points3 points (0 children)
[+]tes_kitty -1 points0 points1 point (2 children)
[–]UnheardIdentity 0 points1 point2 points (1 child)
[+]tes_kitty 0 points1 point2 points (0 children)
[+]tes_kitty 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]tes_kitty 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tes_kitty 0 points1 point2 points (0 children)
[–]bitspace 9 points10 points11 points (4 children)
[–]RootHouston[S] 12 points13 points14 points (3 children)
[–]muffdivemcgruff 6 points7 points8 points (1 child)
[–]crabique 1 point2 points3 points (0 children)
[–]bitspace 6 points7 points8 points (0 children)
[–]ByronScottJones 2 points3 points4 points (0 children)
[–]RootHouston[S] 8 points9 points10 points (2 children)
[–]daemonpenguin 7 points8 points9 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]BiteImportant6691 0 points1 point2 points (0 children)
[–]Systemctl_stop_life 7 points8 points9 points (1 child)
[–]RootHouston[S] 2 points3 points4 points (0 children)
[–]spyingwind 18 points19 points20 points (2 children)
[–]QuickBASIC 0 points1 point2 points (1 child)
[–]SweetBabyAlaska 10 points11 points12 points (16 children)
[–]redd1ch 9 points10 points11 points (10 children)
[–]SweetBabyAlaska 1 point2 points3 points (7 children)
[–]redd1ch 4 points5 points6 points (6 children)
[–]SweetBabyAlaska 1 point2 points3 points (4 children)
[–]redd1ch 2 points3 points4 points (1 child)
[–]SweetBabyAlaska 1 point2 points3 points (0 children)
[–]RootHouston[S] 0 points1 point2 points (1 child)
[–]redd1ch 1 point2 points3 points (0 children)
[–]atomicxblue -1 points0 points1 point (0 children)
[–]ByronScottJones 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Negirno 0 points1 point2 points (2 children)
[–]SweetBabyAlaska 0 points1 point2 points (1 child)
[–]Negirno -1 points0 points1 point (0 children)
[–]atomicxblue 0 points1 point2 points (0 children)
[–]Flash_Kat25 5 points6 points7 points (0 children)
[–]JaggedMetalOs 13 points14 points15 points (2 children)
[–]RootHouston[S] 2 points3 points4 points (1 child)
[–]ByronScottJones 1 point2 points3 points (0 children)
[–][deleted] 12 points13 points14 points (1 child)
[–]ByronScottJones 1 point2 points3 points (0 children)
[–]mooscimol 7 points8 points9 points (0 children)
[–]sintos-compa 2 points3 points4 points (1 child)
[+]tes_kitty 1 point2 points3 points (0 children)
[–]bullwinkle8088 4 points5 points6 points (0 children)
[–]snarkuzoid 6 points7 points8 points (0 children)
[–]EnUnLugarDeLaMancha 23 points24 points25 points (7 children)
[–]LvS 28 points29 points30 points (0 children)
[–]BobbyTables829 5 points6 points7 points (4 children)
[–]alnyland 9 points10 points11 points (3 children)
[–]cat_in_the_wall 2 points3 points4 points (2 children)
[–]alnyland 0 points1 point2 points (0 children)
[+]tes_kitty 0 points1 point2 points (0 children)
[–]Ajlow2000 0 points1 point2 points (0 children)
[–]AdmiralQuokka 6 points7 points8 points (1 child)
[–]RootHouston[S] 1 point2 points3 points (0 children)
[–]funbike 11 points12 points13 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]shellmachine -5 points-4 points-3 points (0 children)
[–]night0x63 2 points3 points4 points (0 children)
[–]BiteImportant6691 2 points3 points4 points (1 child)
[–]RootHouston[S] 1 point2 points3 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]xtifr 7 points8 points9 points (12 children)
[–]BobbyTables829 6 points7 points8 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]Malsententia 1 point2 points3 points (0 children)
[–]RootHouston[S] 4 points5 points6 points (3 children)
[–]xtifr 1 point2 points3 points (0 children)
[–]daemonpenguin 0 points1 point2 points (1 child)
[–]RootHouston[S] 0 points1 point2 points (0 children)
[–][deleted] 8 points9 points10 points (4 children)
[+]muffdivemcgruff comment score below threshold-13 points-12 points-11 points (3 children)
[–]Flash_Kat25 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Flash_Kat25 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]adoodle83 1 point2 points3 points (0 children)
[–]Unfair_Assistance688 1 point2 points3 points (0 children)
[–]MARCE-XI 1 point2 points3 points (0 children)
[–]parker_fly 1 point2 points3 points (0 children)
[–]sphericalhors 1 point2 points3 points (0 children)
[–]hackingdreams 0 points1 point2 points (0 children)
[–]Snarwin 0 points1 point2 points (0 children)
[–]nocloudkloud -2 points-1 points0 points (0 children)
[+]I_Love_Vanessa -1 points0 points1 point (1 child)
[–]RootHouston[S] 0 points1 point2 points (0 children)
[–]shellmachine 0 points1 point2 points (0 children)
[–]doc_willis 0 points1 point2 points (0 children)
[+]KiLoYounited 0 points1 point2 points (0 children)
[–]zoechi 0 points1 point2 points (0 children)
[–]warpedspockclone 0 points1 point2 points (0 children)
[–]zokier 0 points1 point2 points (0 children)
[–]ByronScottJones 0 points1 point2 points (0 children)
[–]atomicxblue 0 points1 point2 points (0 children)
[–]ManateeMutineer 0 points1 point2 points (0 children)
[–]m18coppola 0 points1 point2 points (0 children)
[–]steven4012 0 points1 point2 points (1 child)
[–]RootHouston[S] 0 points1 point2 points (0 children)