#!/bin/sh workdir="/home/rotman/www/home/proj/voest/images" date=`date +%Y%m%d --date "1 days ago"` year=`date +%Y --date "1 days ago"` month=`date +%m --date "1 days ago"` day=`date +%d --date "1 days ago"` # echo $year$month$day cd $workdir test -d small/$year/$month/$day || mkdir -p small/$year/$month/$day test -d large/$year/$month/$day || mkdir -p large/$year/$month/$day mv b_$date* large/$year/$month/$day mv s_$date* small/$year/$month/$day date=`date +%Y%m%d` test -f b_${date}1200.jpg && ln -sf b_${date}1200.jpg curr_big.jpg test -f s_${date}1205.jpg && ln -sf s_${date}1205.jpg curr_small.jpg