Skip to content

jb55/extname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extname Build Status

A small command line utility that gets the file extensions of its arguments.

Installation

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

Examples

$ 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

License

MIT