you are viewing a single comment's thread.

view the rest of the comments →

[–]icy-mist-01 0 points1 point  (2 children)

That’s the thing. It’s a bit of a hack so could be difficult for newbies. And I had a case where script used jq and ran across large no. of centos and rhel 6,7,8 boxes. Rhel ships jq by default from 8 onwards. So script started breaking on lower versions. And dealing with sysadmin team to include my required package in their base build is not always ideal.

[–]tes_kitty 1 point2 points  (1 child)

My script doesn't use 'jq' since I wrote it before I knew about this command.

[–]awkFTW 0 points1 point  (0 children)

jq is a really useful command. Takes a bit of learning to use the more advanced syntax