亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

shell 腳本 如何解析這段字符串?

shell 腳本 如何解析這段字符串?

瀟湘沐 2018-09-24 17:03:45
以下是網絡返回的一段字符串,我想在 shell 腳本中解析這段字符串,獲取 fsize 的值,也就是 13431719請問該怎么做?2018-06-14 14:38:26,380 - DEBUG - wcscmd version 1.0.02018-06-14 14:38:26,381 - DEBUG - Updating Config.Config ishttps->None2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config limit->None2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config marker->None2018-06-14 14:38:26,381 - DEBUG - Updating Config.Config mode->None2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config output->None2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config overwrite->None2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config prefix->None2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config separate->None2018-06-14 14:38:26,382 - DEBUG - Updating Config.Config upload_id->None2018-06-14 14:38:26,382 - DEBUG - Command: stat2018-06-14 14:38:26,383 - DEBUG - Start to get the stat of rsrj-test001:vikii/test02.mp42018-06-14 14:38:26,603 - DEBUG - (200, {'mimeType': 'video/mp4', 'code': 200
查看完整描述

1 回答

?
牛魔王的故事

TA貢獻1830條經驗 獲得超3個贊

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

給你一種,自己思考下其他方法吧


查看完整回答
反對 回復 2018-09-24
  • 1 回答
  • 0 關注
  • 773 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號