1,获取指定列和行,在指定列和行内插入 指定符号。
/p/v2/api/winapi/mini/merchant/admin/notice/list/1/10?current=1&size=10&type=1 upstream_response_time:1.708
1 /p/v2/api/winapi/mini/merchant/admin/extension/content/1/10?type=1&time=0&sort=0 upstream_response_time 1.028
[root@liguojian tmp]# tail api.log | awk '{print$8,$NF}' | awk 'BEGIN {FS=":"}{print $1" "$2}'| awk '{print$1,$3}'|sort -k 2 -r| uniq -c
1 /p/v2/api/winapi/mini/merchant/admin/extension/content/1/10?type=1&time=0&sort=0 1.341
[root@liguojian tmp]# tail api.log | awk '{print$8,$NF}' | awk 'BEGIN {FS=":"}{print $1"--"$2}'
/p/v2/api/winapi/mini/client/content/hot/1/100 upstream_response_time--1.283
/p/v2/api/winapi/mini/merchant/admin/extension/content/1/10?type=1&time=0&sort=0 upstream_response_time--1.341
/p/v2/api/winapi/mini/merchant/admin/extension/content/2/10?type=1&time=0&sort=0 upstream_response_time--1.066