Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
2
Task/Word-frequency/UNIX-Shell/word-frequency-1.sh
Normal file
2
Task/Word-frequency/UNIX-Shell/word-frequency-1.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
<"$1" tr -cs A-Za-z '\n' | tr A-Z a-z | LC_ALL=C sort | uniq -c | sort -rn | head -n "$2"
|
||||
1
Task/Word-frequency/UNIX-Shell/word-frequency-2.sh
Normal file
1
Task/Word-frequency/UNIX-Shell/word-frequency-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
curl "https://www.gutenberg.org/files/135/135-0.txt" | tr -cs A-Za-z '\n' | tr A-Z a-z | sort | uniq -c | sort -rn | sed 10q
|
||||
Loading…
Add table
Add a link
Reference in a new issue