Forked from jaredmichaelwilliams/gist:ce73746ded0c29b438dc
Last active
April 6, 2018 14:10
-
-
Save MarcelFox/ce7aa00f42b92c3f316b778400c5325d to your computer and use it in GitHub Desktop.
Get iNodes list
This file contains 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
#!/bin/bash | |
echo -e "\nLista de Inodes do diretório: $(pwd)\n\n" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; echo -e "$c\t\t- $d"; done | sort -nr ;echo -e "\nTotal: \t\t$(find $(pwd) | wc -l)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment