#!/bin/sh # # $Id: iAddComment,v 1.1 2001/11/20 03:11:28 vijoy Exp vijoy $ # # Cleanup and create input txtfile=`cat txtfile` echo "Starting conversions.."; while true do # Annotate the images imgname=`echo $txtfile|cut -d '#' -f 1` txtfile=`echo $txtfile|cut -d '#' -f 2-` echo ":"$imgname"..." if [ "X$imgname" = "X" ]; then break fi descript="\nDesc:"`echo $txtfile|cut -d '#' -f 1`"\nCopyright Vijoy Pandey" txtfile=`echo $txtfile|cut -d '#' -f 2-` mogrify -comment "$descript" $imgname done