安装jq工具 sudo apt install jq 使用工具合并json jq -s 'map(.[])' build_folder/**/compile_commands.json > compile_commands.json