calculate frequency of word acording to length in text
This commit is contained in:
parent
d6be2a2ce9
commit
6dd47bcdb5
3
analysis/len_freq.sh
Normal file
3
analysis/len_freq.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
#calculate no occurances of words depending on length
|
||||
bzcat $1 | tr -cs '[:alnum:]' ' ' | tr ' ' '\n' | awk '{print length}' | sort -n | uniq -c > len_freq.txt
|
Loading…
Reference in New Issue
Block a user