首页 > 系统相关 >linux 中awk 命令同时指定多个分割符

linux 中awk 命令同时指定多个分割符

时间:2022-11-16 18:14:16浏览次数:45  
标签:分割 pc1 test3 77 awk linux txt root

 

001、

[root@pc1 test3]# ls
a.txt
[root@pc1 test3]# cat a.txt            ## 测试数据
ad_33;hh_kk
dd;ff;dd;77
uu_77_88_99
[root@pc1 test3]# awk -F "[_;]" '{print $2}' a.txt   ## 同时指定_和;为分割符
33
ff
77

 

标签:分割,pc1,test3,77,awk,linux,txt,root
From: https://www.cnblogs.com/liujiaxin2018/p/16896885.html

相关文章