
Andrew Voumard Thank you for the script and the guidelines to save it, it was, as you said successful. I like that Linux has so many options to solve a problem. And I am grateful for this community which has always been willing to assist. Thank you Andrew Greig On 7/10/19 8:16 pm, Duncan Roe via luv-main wrote:
rename 6H9A 6J9A 6H9A* Thanks Duncan, I got this ... andrew@andrew:~/Working/20191007-DuchessDank/Rename-1$ rename 6H9A 6J9A 6H9A* Bareword found where operator expected at (eval 5) line 1, near "#line 1 6H9A" (Missing operator before H9A?) syntax error at (user-supplied code) line 3, near "6H9A" andrew@andrew:~/Working/20191007-DuchessDank/Rename-1$ I don't understand the fault, but I am sure that it would trivial to fix Thank you Andrew
Hi Andrew McG Thank you for this #!/bin/bash for filex in 6H9* do mv -v "${filex}" "${filex/6H9/6J9}" done It worked well, just ran it in the directory where the files were. Very grateful Andrew Hi Kim, I understand the time stamping thing is a great way to ensure each file is unique in name, but I upload files of the models I shoot to a Google drive folder and then send them a link, without prejudice, I suspect that many would have trouble with the long file names. If they want to discuss a shot they just quote the 4 digits on the end. I thank you for your substantial and excellent proposition, which would have me renaming all of my files. Just renaming as above allows me to correct the few files that need it (in this case 85) and the camera numbering scheme can be changed every 10,000 images in camera. Thank you Andrew Greig