[root@db01 ~]# cat 11"xx利杰" <006737@zjtlcb.com>,"xx" <004515@zjtlcb.com>,[root@db01 ~]# awk 'BEGIN{RS=",";ORS="/n"}{PRint $0}' 11"xx" <006737@zjtlcb.com>"tt" <004515@zjtlcb.com>[root@db01 ~]# awk 'BEGIN{RS=",";ORS="/n"}{print $0}' 11 | awk -F '<' '{print $2}' |awk -F '@' '{print $1}'006737004515014508011597008862006599014401011584014549013677014558011585013660013712014507014584014518014505015207013647011583014582000301003929014580014503013692006595014522002593014591002166013680013650002328014406001488004651013644001781000570006734014402014574003867014504011586015201003791008857004686015203014566006692awk默认从STDIN接受数据,打印文本到STDOUT。awk的默认输入和输出分隔符:FS : 输入字段分隔符,默认空格。RS : 输入行分隔符,默认/n。OFS : 输出字段分隔符,默认空格。ORS : 输出行分隔符,默认/n。
新闻热点
疑难解答