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 語以上のすべての行を印刷したい。単語は空白で区切られます。
どうすればこれを行うことができawkますか?
awk
次のように awk を使用します。
awk 'NF>3' file
sed -E '/\s*(\S+\s+){3}\S+/!d' file