head -n 500 1.log |awk '{print $11}' > 1.txt 查看1.log日志文件前500行记录并打印出第11列也就是域名的那一列,并输出到1.txt文件里 转载于:https://www.cnblogs.com/leon2659/p/9792701.html