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
时间: 2024-10-06 23:28:54