$ cat *.txt | tr " " "\n" | sort | uniq
Use tr to put all the words (separated by spaces, but you can make this more complex if you need) into their own line. sort will then sort all these words. Finally, uniq will get rid of duplicate lines, and the -c flag will add counts. I'll run this on a small set of bug reports from the Eclipse Bugzilla repository:
$ cat * | tr " " "\n" | sort | uniq -c
1 ^^^^
6 able
12 about
1 aboutdialog
1 abovebackground
1 absolute
18 abstract
2 abstractannotationprocessormanager
4 abstractcompletiontest
1 abstractdebugeventhandler
[...]
The words will be displayed in alphabetical order. (Yes, the word "^^^^" actually appeared somewhere in the bug reports.) To instead display them by usage in decreasing order, run it all through sort one more time:
$ cat * | tr " " "\n" | sort | uniq -c | sort -gr
1118 java
1006 eclipse
1005 at
956 org
825 the
546 internal
361 to
356 jdt
320 ui
318 in
[...]
The -g option sorts by numeric values, instead of alphanumeric, and the -r option reverses the sort. Voilà!
Nice post dear. I like it Thin Clients & Zero Client
ReplyDeleteThanks for this one-liner ! Using the tr command is key here.
ReplyDeleteAnd tr is SO much faster than using a "while read line" loop
ReplyDeleteThank you! I was a bit boggled to realize there wasn't a utility for this.
ReplyDeleteThanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. this
ReplyDeleteinstagram takipçi satın al
ReplyDeleteucuz takipçi
takipçi satın al
https://takipcikenti.com
https://ucsatinal.org
instagram takipçi satın al
https://perdemodelleri.org
https://yazanadam.com
instagram takipçi satın al
balon perdeler
petek üstü perde
mutfak tül modelleri
kısa perde modelleri
fon perde modelleri
tül perde modelleri
https://atakanmedya.com
https://fatihmedya.com
https://smmpaketleri.com
https://takipcialdim.com
https://yazanadam.com
yasaklı sitelere giriş
aşk kitapları
yabancı şarkılar
sigorta sorgula
https://cozumlec.com
word indir ücretsiz
tiktok jeton hilesi
rastgele görüntülü sohbet
fitness moves
gym workouts
https://marsbahiscasino.org
http://4mcafee.com
http://paydayloansonlineare.com
Mmorpg oyunları
ReplyDeleteinstagram takipçi satın al
tiktok jeton hilesi
Tiktok jeton hilesi
antalya saç ekimi
referans kimliği nedir
İNSTAGRAM TAKİPÇİ SATIN AL
Metin2 pvp serverler
Instagram Takipçi
Good content. You write beautiful things.
ReplyDeletesportsbet
hacklink
mrbahis
vbet
vbet
mrbahis
hacklink
korsan taksi
sportsbet
Success Write content success. Thanks.
ReplyDeletebetturkey
canlı slot siteleri
betpark
betmatik
kıbrıs bahis siteleri
kralbet
deneme bonusu
kırıkkale
ReplyDeletekütahya
niğde
ardahan
bolu
PRNXAZ
yurtdışı kargo
ReplyDeleteresimli magnet
instagram takipçi satın al
yurtdışı kargo
sms onay
dijital kartvizit
dijital kartvizit
https://nobetci-eczane.org/
ZCP
ağrı
ReplyDeletemuş
mersin
afyon
uşak
JVDİQZ
شركة عزل اسطح
ReplyDeleteعزل اسطح
شركة عزل اسطح
ReplyDeleteعزل اسطح
شركة مكافحة حشرات 22oSZokb1N
ReplyDeleteشركة مكافحة حشرات RPMHiV2b3H
ReplyDeleteشركة مكافحة بق الفراش بالجبيل PQhrx9ryUw
ReplyDeleteشركة تسليك مجاري بالهفوف ZwA8sypoAW
ReplyDelete