From d0dbc615512bd95bc83c00bc434ec5d9185c19b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 12 Mar 2021 14:56:00 +0000 Subject: [PATCH] lsext: add description --- lsext | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lsext b/lsext index 2ebf547..1290723 100755 --- a/lsext +++ b/lsext @@ -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