shell 的字符完全匹配 grep -w "aaa" inputfile|awk '{for (i=1;i<=NF;i++) {if ($i=="aaa") print $0}}' https://bbs.csdn.net/topics/100140743