
On 05.05.17 20:16, Mark Trickett via luv-main wrote:
I need to learn perl,
For other tasks, perhaps?
but will do a lot better around other people, which is not so easy when in a rural area with less population and an excess of Windows and mac users who have no interest in more than using the bare minimum of provided utilities.
Have you tried Russel's elegantly minimalist solution? Just trying the first action on the command line: $ n="01032017(001).jpg" $ echo $(echo $n|cut -c 5-8)$(echo $n|cut -c 3-4)$(echo $n|cut -c 1-2) gives a very fine: 20170301 The "(001).jpg" is added in the third line. If time is short, and mental energy drained by other demands, then KISS is key, so you can gain a quick success, I figure. (This one isn't a task which needs later upscaling.) Erik