I try to echo the output of curl in a pipe: I tried
curl -s --fail --compressed -u $CREDS -X GET URL | echo * | jq -S "." > file.txt
curl -s --fail --compressed -u $CREDS -X GET URL | echo | jq -S "." > file.txt
curl -s --fail --compressed -u $CREDS -X GET URL | xargs echo | jq -S "." > file.txt
But they all didn't work. What am I doing wrong?
| echopart. Didn't work is not a problem description. Please include example input and example and expected output.