Comedy Number 6
Measure for Measure
http://shakespeare.mit.edu/measure/full.html
- DUKE VINCENTIO
- ISABELLA
To compare the number of times each speaker, spoke during the play.
curl "http://shakespeare.mit.edu/measure/full.html" -O "data.txt"
curl "http://shakespeare.mit.edu/measure/full.html" | sed 's/<\/*[^>]*>//g' > data.txt
grep 'DUKE VINCENTIO' data.txt -c
grep 'ISABELLA' data.txt -c
grep 'DUKE VINCENTIO' data.txt -c > result-duke.txt
grep 'ISABELLA' data.txt -c > result-isabella.txt
- 'DUKE VINCENTIO' spoke for about 207 times where as 'ISABELLA' spoke for 156 times.
- 'DUKE VINCENTIO' speaks more than 'ISABELLA'.