I have bunch of files sitting in folders like
dataAAAjson1.json dataAAAjson2.json dataAABjson1.json ... datajson_x.json
I want to cat all the jsons into one single file?
find data/ -name '*.json' -exec cat {} ; > uber.json
a short explanation:
find <where> -name <file_name_pattern> -exec <run_cmd_on_every_hit> {} ; > <where_to_store>
2.1m questions
2.1m answers
60 comments
57.0k users