#!/bin/bash
for f in *.pfm; do
  if [ ! -f ${f%.*}.exr ]; then
    convert ${f%.*}.pfm ${f%.*}.exr
  fi
done
