I am trying to merge all json files in a directory (can be many).
I know that if there are only 2 files, I can use jq -s . file1.json file2.json
. But when I tried to use the a wild card like jq -s . file*.json
, it fails. Any idea?
I am trying to merge all json files in a directory (can be many).
I know that if there are only 2 files, I can use jq -s . file1.json file2.json
. But when I tried to use the a wild card like jq -s . file*.json
, it fails. Any idea?