lsext: add description

This commit is contained in:
Lukáš Kucharczyk 2021-03-12 14:56:00 +00:00
parent cfe548f7e8
commit d0dbc61551
1 changed files with 2 additions and 0 deletions

2
lsext
View File

@ -1,3 +1,5 @@
#!/bin/env sh
# list all extentions in a folder up to a certain depth and sort by frequency
# lsext $folder $depth
find "${1:-.}" -maxdepth ${2:-1} -type f | sed -e 's/.*\.//' | tr [:upper:] [:lower:] | sort | uniq -c