scripts/lsext

4 lines
118 B
Bash
Executable File

#!/bin/env sh
find "${1:-.}" -maxdepth ${2:-1} -type f | sed -e 's/.*\.//' | tr [:upper:] [:lower:] | sort | uniq -c