# $Id: housephotos.awk,v 1.18 2025/09/27 03:21:52 grog Exp $ # Create a makejpeg file from housephoto.notes file. BEGIN { i = 0; # Only look at photos from E-M1 Mark II. # Is this safe? # It's better than the alternative. while ("ls -rt 4*.ORF | sed 's:embedded\.::; s:\.JPG::; s:\.jpg::; s:\.ORF::'" | getline > 0) { # printf ("Photo %d: %s\n", i, $1); photo [i++] = $1; } i = 0; } /^[^#]/ { score [i] = $1; name [i] = $2; i++; # printf ("Name %s, score %s, line %d\n", name [i], score [i], i); } END { j = 0; while (j < i) { if (score [j] != "-") printf ("%s%s %s\n", photo [j], "_DxO", name [j]); j++; } }