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.
Linux の正規表現に関する短い質問があります。(Dracula.txt).txt形式の本があります。この本で最も頻繁に使用される 3 つの単語のうち、次で始まり、次で終わる単語を特定して表示する方法がわかりません。私は私が使用する必要があることを知っていますvegrep
.txt
v
e
grep
よろしくお願いします。
そのためだけにもっと使う必要がありますgrep>>
grep -io '\bv[a-z]*e\b' Dracula.txt | sort -f | uniq -ic | sort -nr | head -3