A small command line utility that gets the file extensions of its arguments.
Install with clib:
$ clib install jb55/extname
Install with make:
$ git clone https://github.com/jb55/extname.git /tmp/extname
$ cd /tmp/extname && make install
$ extname ~/dir/test.c
.c
$ extname ~/dir/test.c hi .nope
.c
.nope
$ find . -print0 | xargs -0 extname | sort | uniq
# generate a list of all the extensions in a folder and its subfolders
MIT