Hello,
Well, I realized afterwards that this quesstion was rather stupid... since I had don a backup of the whole folder before renaming ! As it is, my algorithm renames both NEFs and sidecars in one pass. The only bad side is that I must take the whole path into account for the cut parameters. Being able to part subfolders would be better, but I am not that far and I am rather happy with what I could do thanks to linux power. Since I was to work on absolutely all my photos, I deleted the library, then re-imported the photos and could notice that most of them retrieved their history perfectly. some did not, I intend to investigate why. I was surprized to discover that the xmpMM:DerivedFrom section has been updated according to the NEF new name without resetting the sidecar itself. I don't know whether this behaviour is wanted or not, but in my case I am very happy it did so. BTW, I didn't understand what you exactly mean by > remove the subj filmroll from dt What am I supposed to do exactly ? Regards, J.-Luc > Message du 15/09/16 18:24 > De : "Patrick Shanahan" > A : "Darktable Users List" > Copie à : > Objet : Re: [darktable-user] Batch rename photos + sidecars OK, but... > > * Jean-Luc CECCOLI [09-15-16 12:04]: > > Hello, > > > > > > I decided to rename all my photos + sidecars to delete one useless > > character. > > The files are into subfolders under one single main folder. > > >From within the main folder, this gives something like > > >./20160625/180523670.NEF, which will be convenient. > > > > After some search on the web, I was able to do this : > > > > for file in $(find -name "*.NEF*"); do NF=$(echo $file|cut -c1-19,21-) && > > mv $file $NF; done > > > > which did the job, but... how could I do to modify le reference within the > > sidecar so as it matches the new name ? > > Modify your rename algorithm and apply to the sidecar/xml files, then > remove the subj filmroll from dt and import the newly named files. dt > will see your changes in the xml files. > > -- > (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri > http://en.opensuse.org openSUSE Community Member facebook/ptilopteri > http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 > Registered Linux User #207535 @ http://linuxcounter.net > ____________________________________________________________________________ > darktable user mailing list > to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org > > ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org