#!/bin/bash sortu () { sort | uniq -c | sort -n } sortu "$@"