$ cat IPC-Run.yml --- comment: "Ignore (ADAMK|TODDR)/IPC-Run-0* on netbsd/alpha, cos it breaks" match: distribution: "(ADAMK|TODDR)/IPC-Run-0" perlconfig: archname: "alpha-netbsd" disabled: 1 $ cat IPC-Run.yml.dd $VAR1 = { 'disabled' => '1', 'comment' => 'Ignore (ADAMK|TODDR)/IPC-Run-0* on netbsd/alpha, cos it breaks', 'match' ... #### #!/bin/sh for i in *yml; do if [[ ! -s $i.dd || $i -nt $i.dd ]]; then echo Rebuilding $i perl -MYAML=LoadFile -MData::Dumper -e "print Dumper(LoadFile('$i'))">$i.dd fi done