shell 的字符完全匹配

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

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

原文地址:https://www.cnblogs.com/tonggc1668/p/15344687.html