Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Print Words With Frequency < 10

DZone's Guide to

Print Words With Frequency < 10

·
Free Resource

#!/bin/awk -f
{ for(i = 0; i < NF; i++) WORD[$i]++; }
END {
  for(word in WORD)
    if (WORD[word] < 10)
      printf "%3d %s\n", WORD[word], word;
}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}