6 lines
141 B
Bash
Executable file
6 lines
141 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
for word in $(grep -Roh '\w*' "$1" | sort | uniq)
|
|
do
|
|
echo "$word: $(grep -lRw "$word" "$1" | wc -l)"
|
|
done | sort -n
|