周梦康 发表于 2018-06-05 984 次浏览 标签 : 小技巧

免费领取阿里云优惠券 我的直播 - 《PHP 进阶之路》

{
  "data":{
    "billId":"00000000000191",
    "channel":"aliyun",
    "billType":"personal",
    "uid":"12334567893",
    "buyer":{
      "tel":"13100000000",
      "name":"aliyun测试",
      "org":"aliyun",
      "position":"CEO",
      "industry":"IT",
      "companySize":"1-100人"
    },
    "tickets":[
      {
        "invCode":"ATEC",
        "invSpec":"259370",
        "num":"1",
        "price":"10.0",
        "amount":"10.0",
        "name":"测试人员1",
        "tel":"13212340011",
        "cardNo":"1234566789123456789",
        "email":"bbbb@bbbbbbbb.com",
        "org":"oracle",
        "position":"职员",
        "industry":"IT",
        "companySize":"1-100人"
      }
    ]
  }
}
$ awk '{printf("%s",$0)}' test.txt | sed 's/ //g'
{"data":{"billId":"00000000000191","channel":"aliyun","billType":"personal","uid":"12334567893","buyer":{"tel":"13100000000","name":"aliyun测试","org":"aliyun","position":"CEO","industry":"IT","companySize":"1-100人"},"tickets":[{"invCode":"ATEC","invSpec":"259370","num":"1","price":"10.0","amount":"10.0","name":"测试人员1","tel":"13212340011","cardNo":"1234566789123456789","email":"bbbb@bbbbbbbb.com","org":"oracle","position":"职员","industry":"IT","companySize":"1-100人"}]}}

嗨,老铁,欢迎来到我的博客!

如果觉得我的内容还不错的话,可以关注下我在 segmentfault.com 上的直播。我主要从事 PHP 和 Java 方面的开发,《深入 PHP 内核》作者之一。

[视频直播] PHP 进阶之路 - 亿级 pv 网站架构的技术细节与套路 直播中我将毫无保留的分享我这六年的全部工作经验和踩坑的故事,以及会穿插着一些面试中的 考点难点加分点

评论列表