?linux基础命令 截取 cut

时间:2021-02-27 13:40:48   收藏:0   阅读:0
cut -d 指定分隔符 -f 指定列数 1,2,3
[root@rongbiz002 26]# awk ‘{print $1}‘ /www/wwwlogs/c2p.rongbiz.com-access_log|head -n5 |cut -d ‘.‘ -f 1,2,3
112.64.53
180.76.154
112.64.53
cut
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!