Score:0

batch folder rename on macos / linux

ke flag

I have 500+ folders which are named with this pattern:

  1. May 2020

The folders contain photos, but for some reason the photos creation date in the meta is wrong, or was overwritten. The correct creation date, is the folder name. So in order to get back some order, I would like to rename the folders with this pattern:

2020-05-01

How could i achieve this with a command line tool on macos / brew (linux)?

Michael Hampton avatar
cz flag
Please decide if you want to do this on macOS or Linux. There are likely to be subtle differences.
zippy-flop avatar
ke flag
The folders are on macOS machine, with brew installed. So most of the linux tools can be loaded, but native OS is macOS. Thanks for any hint. Cheers
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.