Shell - append curl JSON request results in a nice format to an output file, with basic auth