标签:
awk 合并两个文件:
awk ‘NR==FNR{a[i]=$0;i++}NR>FNR{print a[j]" "$0;j++}‘ template interface > interface_last
template:
Template Log tqt_url-response-code Template Log tqt_url-response-code Template Log tqt_url-response-code Template Log tqt_url-response-code Template Log tqt_url-response-code Template Log tqt_url-response-code Template Log tqt_url-response-code
interface:
app_interface.php_2xx app_interface.php_3xx app_interface.php_4xx app_interface.php_5xx app_interface.php_avgrt app_interface.php_count app_interface.php_total_time
interface_last 内容如下:
Template Log tqt_url-response-code app_interface.php_2xx
标签:
原文地址:http://my.oschina.net/moonly/blog/498635