That is pretty simple
$ awk '$2==$3' file
1 cat cat
3 dog dog
$2==$3 Checks if the second field, $2 is equal to third field, $3. If yes, awk takes the default action to print the entire record, line.
awk'!/ 2 / {print $ 0}'文件
A B C
1只猫猫
3只狗狗
已实现我必须查看高级帮助才能按顺序获取输出,但是对于制表机来说却失败了。
克拉斯