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?
dir = raw"C:\Users\jrafa\CSVFILES"
cd(dir)
csvfiles = filter(endswith("pal.csv"), readdir())
for file in csvfiles
mv(file, file[1:4]*"_"*file[5:6]*"_"*file[7:8]*".csv")
end