jq: get property value without quotes

by default, jq gives you the value of a string json property within quotes. To avoid that the “-r” option is applied https://stackoverflow.com/questions/44656515/how-to-remove-double-quotes-in-jq-output-for-parsing-json-files-in-bash

Read More »

exit when curl fails

I wanted curl to fail when it thorugh a request error above 400. but it was’nt. $? was not giving me a error code above 0. so the only way I can tell if a error was thrown is if I combed the string for a particular pattern. but then[…]

Read More »