Here is the final script that we came up with. It doesn't look like much, but if you've ever coded real-time on a projector in front of an audience, it's quite an accomplishment to get anything working without making a fool of yourself. We were quite happy with ourselves.
#!/bin/bash START_DIR=$PWD if [ -z "$1" ] then echo "usage: `basename $0` directory" exit 1 fi cd $1 for file in `ls`; do if [ -f $file ] then SIZE_FILENAME=`du -b $file` CKSUM=`cksum $file | cut -f1 -d" "` echo $SIZE_FILENAME $CKSUM fi done cd $START_DIR
![[logo]](logo.png)