- 论坛徽章:
- 28
|
本帖最后由 moperyblue 于 2016-08-04 10:10 编辑
回复 6# kkshaq
more file- -------------------------------------------------------------------------------
- ServiceName of APNSNotification:
- -------------------------------------------------------------------------------
- Share [%] Total Value
- 37.36 34 vvm
- 32.97 30 vowifi
- 18.68 17 icloudvowifi
- 6.59 6 gen
- 3.30 3 mca
- 1.10 1 multi-sim
- -------------------------------------------------------------------------------
- ServiceName of PushTokenMgmt:
- -------------------------------------------------------------------------------
- Share [%] Total Value
- 57.69 90 vvm
- 14.10 22 icloudvowifi
- 9.62 15 vowifi
- 7.69 12 gen
- 1.92 3 mca
- 1.92 3 vowifi00
- 1.92 3 vvm00
- 1.92 3 blockservice
- 1.92 3 conn-mgr
- 1.28 2 multi-sim
复制代码 sed '/ServiceName of APNSNotification/,/^\s*$/!d' file- ServiceName of APNSNotification:
- -------------------------------------------------------------------------------
- Share [%] Total Value
- 37.36 34 vvm
- 32.97 30 vowifi
- 18.68 17 icloudvowifi
- 6.59 6 gen
- 3.30 3 mca
- 1.10 1 multi-sim
复制代码- sed '/ServiceName of APNSNotification/{:a;N;/\n$/!ba;b};d' file
复制代码 |
|