1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-01 15:33:07 -07:00

document dbusiest

This commit is contained in:
Connor Olding 2021-08-01 08:32:45 -07:00
parent fb3e50f168
commit 14677b3acf

View File

@ -4,7 +4,16 @@
# NO_DASH
dbusiest() { ### @-
### display the directory with the most files in it, counted recursively.
### list directories ordered descending by the number of files in them,
### counted recursively. see also [`cdbusiest`.](#cdbusiest)
###
### ```
### $ cd
### $ dbusiest | head -n3
### 152364 src
### 46518 work
### 20903 play
### ```
[ $# -le 0 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
local c d
for d in *(FDN); do