view scripts/wordfreq @ 235:e58400695ae2

Added tag final version for changeset 348b92755bef
author markus schnalke <meillo@marmaro.de>
date Mon, 16 Jul 2012 11:25:04 +0200
parents eba3744fb238
children
line wrap: on
line source

#!/bin/sh
#
# print frequency of words

deroff "$@" | tr -cs A-Za-z '\012' | tr A-Z a-z |
	sort | uniq -c | sort -nr | sed 20q