
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, On 7/10/19 7:46 pm, Andrew Greig via luv-main wrote:
Hi all, My camera has just ticked over 10,000 images in around 8 months, and so another folder has opened up on the SD card, prior to today the file folder was 100EOS5D, the new folder is 101EOS5D, but the counter has reset from 6H9A9999 to 6H9A0001. At this rate I cannot afford to have the same file numbers repeating in the same calendar year. I can go into the Camera and change the file numbering to 6J9Axxxx, but how can I run a bulk renaming of my Raw Files - not being a scripter I am at a (self imposed) disadvantage,
I have tried to understand the several ways to achieve this,but I have not grasped it.
#!/bin/bash for filex in 6H9* do mv -v "${filex}" "${filex/6H9/6J9}" done Cheers A. -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXZsDBAAKCRCoFmvLt+/i +/IZAP9tH1TUOs4w/npeCsb0JTf+L2ZmUEqpbvS2PgBm14JgRgD+Py670eqZy4K/ kVVw3lLo7PuA4j+K7M3PleDsQZVwjoY= =feQX -----END PGP SIGNATURE-----