Now I have another question… Is it possible to set the filename for the files that dcraw outputs?
It defaults to the same name as the original .PEF file, but I want to rename them to something else, like converted_raw. I found the -O switch which works for 1 file, but when used with the FOR loop, it just overwrites the file with the same name over and over again, instead of creating a new one.