106
submitted 11 months ago* (last edited 11 months ago) by starman@programming.dev to c/programming@programming.dev

TL;DR: It would be cool if all CLI apps supported JSON output, but in the meantime we can use jc

you are viewing a single comment's thread
view the rest of the comments
[-] CubitOom@infosec.pub 15 points 11 months ago

I kinda love it in theory.

Will be trying this out.

I do find it funny however that awk is lumped together with these small use case tools like sed, grep, tr, cut, and rev, since awk can be used to replace all of these tools and is it's own language.

I don't think the emphasis should be on simplicity, but rather on understandability (which long awk commands are not either).

If you give someone a bash script, they should be able to know exactly what the code will do when they read the script without having to run it or cat out the source it might need to parse. Using ubiquitous tools that many people understand is a good step.

Sadly awk is installed by default in most distros and tools like jq and jc would require installation.

[-] MNByChoice@midwest.social 4 points 11 months ago

AWK is fucking awesome!

this post was submitted on 10 Dec 2023
106 points (95.7% liked)

Programming

17314 readers
153 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS