![]() Luckily there’s a better way using a tool called jq. ![]() You have to pipe to 4 different utilities just to get to a property in the JSON response body! Bash doesn’t understand JSON out of the box, and using the typical text manipulation tools like grep, sed, or awk, gets difficult. That’s tough to read and even tougher to write. ![]() ![]() (Note: the above code was taken from, which is a great article). Perhaps you’ve seen or even written bash that looks like this: curl -s '' \ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |