#!/bin/bash cat $1 | tr [:punct:] ' ' | tr A-Z a-z | tr ' ' '\n' | sort | count2 | sort -n -k 2 | tail -n $2