Created
July 15, 2015 01:54
-
-
Save insanedefaults/69a814f6ab5b5fd257a8 to your computer and use it in GitHub Desktop.
Count inodes in style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inode_counter() { | |
#give me a path | |
#i'll count the inodes recursively | |
#I'm pretty slow, but I'm real purdy | |
path=$1 | |
z=0 | |
find $path 2>/dev/null | while read x | |
do ((z++)) | |
printf '\r%-16s %-8s' "$install" "$z" | |
done | |
unset z | |
echo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment