#!/bin/sh C=`ls local/present`; S="show-image"; for p in $C; do f=$S-$p; for x in t sh; do if [ ! -f $f.$x ]; then echo $f.$x; cat template-$S-$x | sed -e "s:PLACE:$p:g" > $f.$x; if [ $x == "sh" ]; then chmod a+rx $f.$x; fi; fi; done done;