omega/count.sh

5 lines
103 B
Bash
Executable File

#!/bin/bash
grep -o "[[:alpha:]]\{1,\}" "$1" | tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -n