Created
January 1, 2011 23:09
-
-
Save txomon/762090 to your computer and use it in GitHub Desktop.
Script for listing the 10 biggest files in the package pass as argument
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
echo | |
ultimos_10=`git verify-pack -v $1 | sort -nk3 | tail ` | |
shadelos10=`echo $ultimos_10| xargs -n1 | awk -F\ '{ if (length($1) > 30) print $1}'` | |
for a in $shadelos10 ; do | |
hashynombre=`git rev-list --objects --all | grep $a` | |
tamano=`git verify-pack -v $1 | grep $a | tail | awk -F\ '{print $3}'` | |
echo $hashynombre | |
echo "File size(s): $tamano"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment