10 lines
212 B
Fish
10 lines
212 B
Fish
if test -z "$argv[1]"
|
|
set dir '.'
|
|
else
|
|
set dir "$argv[1]"
|
|
end
|
|
for i in (find "$dir" -maxdepth 1 -type d )
|
|
set b (find "$i" -type f| wc -l)
|
|
printf "%d/%s\n" $b (basename "$i")
|
|
end | sort -nr | column -ts/
|