1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08: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 # NO_DASH
dbusiest() { ### @- 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; } [ $# -le 0 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
local c d local c d
for d in *(FDN); do for d in *(FDN); do