Hi, newbie here. I have searched the forum and scanned down a coupke of pages but not found anything that might help me.
On my DJI drone, when I shoot panoramas, I get a series of folders named as follows
100_0389
100_0390
100_0397
100_0422
etc
Not all numbers in the series 389, 390 etc will be present
Inside each folder is a variable number of files named
DJI_0001
DJI_0002
DJI_0003
DJI_0004
etc
I think the maximum will be 27 files, and all files are numbered sequentially.
So if I have 4 folders named as above, and say 3 files in each folder, then I end up with (admittedly inside different folders), but I get 4 files named DJI_0001, 4 named DJI_0002 and 4 named DJI_0003. They will have different time stamps, but the file names are identical. This is a recipe for later disaster.
I want to rename each file to incorporate the foldername (1 level up) as follows
DJI_03089_0001
DJI_03089_0002
DJI_03089_0003
DJI_03089_0004
etc
DJI_03090_0001
DJI_03090_0002
DJI_03090_0003
DJI_03090_0004
etc
I'm very much a beginner with BRU (and even more so with RegEx), but I do like to learn so if it is possible, some hints/pointers to get me on the way would be appreciated. I will also be adding a date, but that I can cope with.