lsext: add description
This commit is contained in:
parent
cfe548f7e8
commit
d0dbc61551
2
lsext
2
lsext
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/env sh
|
#!/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
|
find "${1:-.}" -maxdepth ${2:-1} -type f | sed -e 's/.*\.//' | tr [:upper:] [:lower:] | sort | uniq -c
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue