How does the shell script parse this string?

the following is a string returned by the network. I want to parse this string in the shell script to get the value of fsize, that is, 13431719
what should I do?

2018-06-14 14:38:26,380 - DEBUG - wcscmd version 1.0.0
2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config ishttps->None
2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config limit->None
2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config marker->None
2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config mode->None
2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config output->None
2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config overwrite->None
2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config prefix->None
2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config separate->None
2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config upload_id->None
2018-06-14 14:38:26,382 - DEBUG - Command: stat
2018-06-14 14:38:26,383 - DEBUG - Start to get the stat of rsrj-test001:vikii/test02.mp4
2018-06-14 14:38:26,603 - DEBUG - (200, {"mimeType": "video/mp4", "code": 200, "hash": "ltVu-sfde4Uoq-86-gvx3Ase_j70", "name": "vikii/test02.mp4", "fsize": 13431719, "expirationDate": "", "message": "OK", "putTime": 1528958272000L, "result": True}, {"x-reqid": "202829121214713520180614143826YQP4KbiG"})

egrep-o "'fsize': (\ d *)" txt | cut-d''- f 2

give you one, think about other ways for yourself


grep-Po "200.Fsizeplate:\ K\ d +"


grep -Po "'fsize': +\d+" test.log   | cut -d ' ' -f 2
Menu