#!/bin/sh

for i in *.dcm; do
    name=`basename $i .dcm`
    convert $i $name.png
done
