#!/bin/sh # Print the number of physical CD cases in the collection, based on # the XML files in this directory. (I'm sure 'count.py' could also # do this, or maybe even already does, but this way is cuter.) echo -n "Number of pieces: " grep "INSERT INTO henryrec" henryrec.sql | wc -l echo -n "Number of discs: " grep label_and_number *.xml | cut -d ":" -f 2 | sed -E s'@@@g' | sort | uniq | wc -l