#!/bin/sh

for i in $*
do
  echo $i	
  cat head pdat $i | convert - `echo $i | sed -e 's/\([^\/\.]*\)\.raw/\1/'`.gif
done
