In a directory I have several sub-directories named as follow (the [1-9] means going from 1 to 9):
Each sub-directories contains a file (ascii) having exactly the same name as the directory. I did a mistake in the naming of several sub-directories (and their enclosed files):
How can I replace
river in the subdirectory and the enclosed file naming?