The following command found the following directories.
$ find tmp/ -name "date=*" -type d
tmp/year=2022/month=05/date=27
tmp/year=2022/month=05/date=21
tmp/year=2022/month=05/date=29
tmp/year=2022/month=05/date=24
tmp/year=2022/month=05/date=31
tmp/year=2022/month=06/date=01
tmp/year=2022/month=06/date=02
I need to rename the directories by replacing date= to day=.
find tmp/ -name "date=*" -type d -exec rename s/date=/day=/g "{}" +;
However, the command doesn't rename the directories?
I will need to implement it in Python.