Environment variable to clobber files by default?

Hi all,

I couldn’t find this question on the message board, but I apologize if it’s been asked before.

Often AFNI programs take the -overwrite flag to overwrite files as needed. In certain cases, the flag doesn’t work, or worse, doesn’t work and gives no error. As one who walks on the “knife edge of danger,” I would like to be able to overwrite all files as needed by default. Is there a global option for this that I have somehow missed, or is the solution to continue prepending ‘rm’ commands everywhere?


You want the AFNI_DECONFLICT variable.

AFNI_DECONFLICT=OVERWRITE will make it overwrite everything and save you the need to -overwrite.