jq '.[]|{tenant,user,time,cnt}|join("|")' tmpa|less

   

### 解析api json文件为csv文件
cd /api
time for i in `ls *html|head -20000`
do
    id=$(echo ${i}|sed 's/.html//')
    echo -n "${id}|"
    cat ${i}|jq -r '[.data.entName,.data.unifiedCode,.data.openStatus]|join("|")'
done > result.csv 2>&1 &

 

https://blog.csdn.net/wangpei1949/article/details/78702272

相关文章:

  • 2022-12-23
  • 2021-04-13
  • 2021-07-06
  • 2021-09-20
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-11-18
相关资源
相似解决方案