Skip to content

Instantly share code, notes, and snippets.

@txomon
Created January 1, 2011 23:09
Show Gist options
  • Save txomon/762090 to your computer and use it in GitHub Desktop.
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
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