word-frequency
This commit is contained in:
parent
08c533bcf9
commit
27ba58ad99
3
word-frequency/sol.sh
Executable file
3
word-frequency/sol.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
grep -oE "[a-z]+" words.txt | sort -u | xargs -I{} sh -c 'echo {} $(grep -oP "(?<![a-z]){}(?![a-z])" words.txt | wc -w)' | sort -nr -t " " -k 2
|
Loading…
x
Reference in New Issue
Block a user