On Mon, 2025-02-17 at 12:38 -0500, hput wrote:
> I have several hundred *.jpg files with this pattern
>
> Actual example:
>
> 'AtlantaVisitAndGrandmaHands 056.jpg'
>
> The numbers vary, of course, but the alpha part and number of digits
> after the space is the same in all *.jpg files
>
> I
Hello,
Try something like this: rename 's/(.*?)\s(\d+).jpg$/$1$2.jpg/' *.jpg
But make a backup first.
Best regards,
Mike
On 2/17/25 18:38, hput wrote:
I have several hundred *.jpg files with this pattern
Actual example:
'AtlantaVisitAndGrandmaHands 056.jpg'
The numbers vary, of course
I have several hundred *.jpg files with this pattern
Actual example:
'AtlantaVisitAndGrandmaHands 056.jpg'
The numbers vary, of course, but the alpha part and number of digits
after the space is the same in all *.jpg files
I have hundreds of these all in one directory. Not something you'd
w