#!/bin/bash cd /var/local/slugcam rm -rf tmp mkdir tmp cd tmp cat /tmp/jpeglist | { n=1 ndc=0 while read f do dc=`basename $f .jpeg` if [ $dc -gt $ndc ] then echo $dc ln -s "../jpegs/$f" "f$n.jpeg" if [ $dc -gt 20080500000000 ] then ndc=$(($dc + 2000)) else ndc=$(($dc + 10000)) fi n=$(($n + 1)) fi done }