text - JSON Keeping only certain fields -
i have json file , save jobid , exec fields in separate file. here format of file,
"2595272":[{"jobid":"2595272", "account":"a-ch51", "user":"yongjin","pkgt": [], "startepoch":"1338406823", "runtime":"56574", "exectype":"user:binary", "exec":"lmp_tacc", "numnodes":"3", "sha1":"ef281f0fe457a2b338fe03734297bc7233985f8c", "execepoch":1337289959, "execmodify":"thu may 17 16:25:59 2012", "starttime":"wed may 30 14:40:23 2012", "numcores":"48", "sizet":{"bss":"136","text":"4455504","data":"103440"}}],
i ideally new file formatted follows
2595272 lmp_taac
what best , easiest way accomplish this? not programmer need as can get. thanks.
Comments
Post a Comment