#!/bin/sh # # Generate a summary of the dates in a month. For you. if [ -z "$1" ] then echo "You didn't list a date to summarize. (Try 09 1970, etc.)" else if [ ! -d $2/$1 ] then echo "[!] There is no $2/$1 Directory. Check again." echo " Remember that 1 is 01, etc...." echo "" exit 1 fi cd $2/$1 for day in * do cd $day for each in * do SUMMARY="`cat $each/NAME | cut -b1-40`" echo "$1/$day/$2: $SUMMARY.... ($each)" done cd .. done fi