怎么编写shell语句,将数据中的某一列json格式的数据提取解析出来,并追加在对应的那条数据后面。尽量用shell语言实现,如果有其他简便方法也可以
原始数据内容如下:
335970 | 115 | {"traceid":"0421000841sgm6p","pixeldata":-13075235,"pixelcoordinate":"703,160","pixelabnormaldata":0,"collectedpixeldata":"703,160"}
335971 | 116 | {"traceid":"0421000666sgm6p","pixeldata":-12325235,"pixelcoordinate":"733,144","pixelabnormaldata":1,"collectedpixeldata":"333,132
结果数据:
335970 | 115 | 0421000841sgm6p | -13075235 | 703,160 | 0 | 703,160
335971 | 116 | 0421000666sgm6p | -12325235 | 733,144 | 1 | 333,132