Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • My command line is pointed at the directory containing all my JSON files but I'm getting this error: "jq: error: Could not open file *.json: Invalid argument" I've received this error when attempting several commands previously. Commented Sep 28, 2018 at 3:16
  • I installed Ubuntu on Windows so I had access to a linux shell and this response worked perfectly. I used "jq -n '[inputs | .messages] | add' *.json > output.json" and it compiled all of the messages into a single new file. Thanks for the help. Commented Sep 28, 2018 at 5:13