If a user wants to write jq
output to a file, the solution is simple.
jq
output to a file
Extract all project ids from the following json
payload to a text file:
|
|
|
|
Output: ids.txt
:
|
|
Using the redirection operator (>
), the jq
results are written to a file.