I can do this in Windows CMD scripting but now I am getting into Debian via Raspberry Pi.
What I'd like to do is...
(In current folder)
- For each subfolder...
- Create a file called original_filenames.txt
- Echo the name of the folder into this original_filenames.txt
- List all files (including any subfolders) to original_filenames.txt