simple script to list the file sizes for books for the website
[project-aon.git] / common / scripts / list-file-sizes.sh
1 #!/bin/sh
2 # List the file sizes of a book, should be executed in a parent directory of
3 #   all the files to be found
4 # Usage: list-file-sizes.sh bookcode
5
6 find . -name "$1.*" \
7     | grep -v "\.svn\|\.xml" \
8     | xargs ls -lh \
9     | awk '{print $5 "\t" $9}'