i have a problem renaming all files in a folder, i found a simple solution to this here:
Rename files in multiple directories to the name of the directory
but what i notice is that it only works for single file within that folder, how can do it for multiples directories with multiple files inside each one
i have this example
test_folder/
results_folder1/
file_1.csv
file_2.csv
file_3.csv
file_4.csv
...
results_folder2/
file_1.csv
file_2.csv
file_3.csv
file_4.csv
...
to get this
test_folder/
results_folder1/
results_folder1_1.csv
results_folder1_2.csv
results_folder1_3.csv
results_folder1_4.csv
...
results_folder2/
results_folder2_1.csv
results_folder2_2.csv
results_folder2_3.csv
results_folder2_4.csv
...
I guess I can use rename, but how can made for this situation, thanks in advance for everyone