Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以帮我吗,我如何过滤我的文件,在文件中我有 3、4、5 个元素的行,我想只使用 echo 打印那些有 5 个元素的行,提前谢谢(我在谈论脚本)
cat $file | awk '(NF==5) { print $0}'