Kirby 3 Migration Batch Rename Folders dash to underscore

I wonder how I can batch rename all folders, e.g.

1-home
2-stuff-with-dashes-also

to

1_home
2_stuff-with-dashes-also

as kirby3 expects?

thanks!

I’m on a mac

bash or finder solutions, or a php regex are also welcome, I just cant figure it out, It’s about 800folders so I need to automate it

The script doesn’t do it for you? https://getkirby.com/docs/cookbook/setup/migrate-site#folder-and-file-structure__new-number-separator-for-folders-underscore

2 Likes

whoops, I have this guide open, but got lost in just debugging my site

feel free to delete the post or keep it for reference

thanks

It worked, but it doesn’t work when content folder is symlinked, at least in my case, also just for reference

thanks again