scripts reorganize
This commit is contained in:
9
scripts/fish-functions/files.fish
Normal file
9
scripts/fish-functions/files.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
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/
|
||||
Reference in New Issue
Block a user