Batch process all files in a folder

#!/bin/bash
for file in <path>/*; do
dcm2pnm "$file" "$file".png --write-png
done

Leave a Reply

Your email address will not be published. Required fields are marked *