I have ~60 subdirectories in a single directory. Each of these contain thousands of files, but they all contain a file named test_all_results.txt
.
What I would like to do is to rename each test_all_results.txt
file so that it now has the name:
foldername_all_results.txt
What is the best way to do this?