I am currently working with csv files in my directory with the following naming format (20200702pal.csv) corresponding to a particular day of the year.
I would like to rename all the files by adding an underscore between the year, month and day and removing pal at the end as follows: 2020_07_02.csv
Is there a Julia solution to iterate the new naming format over hundreds of files?
What operating system are you using? Windows or Linux?
I’m using a Windows system
A suggestion based on this solution:
dir = raw"C:\Users\jrafa\CSVFILES"
csvfiles = filter(endswith("pal.csv"), readdir())
for file in csvfiles
Windows PowerToys has a batch rename tool. I’ve never used it, but I imagine it can do this.
@rafael.guerra Thanks a lot! Your solution worked out