Tuestday tip of the day: use jo[1] to generate JSON from shell ;-) [1] https://github.com/jpmens/jo
On Mon, Dec 11, 2017 at 8:01 AM, Ivan Necas <[email protected]> wrote: > Thanks for sharing, looks very useful indeed and didn't know about it > > -- Ivan > > On Fri, 8 Dec 2017 at 22:00, Tom McKay <[email protected]> wrote: >> >> @daviddavis reminded me of a nice utility I learned about recently: jq[1]. >> I use it quite often in scripts involving container images where I need the >> long sha256 to reference them. >> >> sudo skopeo inspect --raw >> docker-daemon:satellite.example.com:5000/examplecorp-docker_hub-alpine:3.4 | >> jq '.config | .digest' >> >> Enjoy! >> >> [1] https://stedolan.github.io/jq/tutorial/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "foreman-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Beste Grüße/Kind regards, Evgeni Golov Software Engineer ________________________________________________________________________ Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Michael Cunningham, Michael O'Neill, Eric Shander -- You received this message because you are subscribed to the Google Groups "foreman-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
