l have about 100 directories such as :
- walking,
- writing,
- dancing,
- swimming.
Each of these directories contains a set of files.
l would like to add the prefix name of the directory to the filenames of its files.
For instance:
writing :
0ZPQl5QUvo0_000202_000212.mp4
AFV8x8ezN8g_000016_000026.mp4
-HutuMqTAPw_000275_000285.mp4
qtvsw6h3yQo_000228_000238.mp4
Ub0rc6U6nfI_000100_000110.mp4
becomes :
writing :
writing_0ZPQl5QUvo0_000202_000212.mp4
writing_AFV8x8ezN8g_000016_000026.mp4
writing_-HutuMqTAPw_000275_000285.mp4
writing_qtvsw6h3yQo_000228_000238.mp4
writing_Ub0rc6U6nfI_000100_000110.mp4
How can I do that?