shell 的字符完全匹配

grep -w "aaa" inputfile|awk '{for (i=1;i<=NF;i++) {if ($i=="aaa") print $0}}'

 

https://bbs.csdn.net/topics/100140743

posted @ 2021-09-27 19:32  tonggc1668  阅读(418)  评论(0编辑  收藏  举报