I realize this is an ancient thread , but :
I would be very curious how to export a text file list of all the contents of all the sub directories (and their subdirectories within subdirectories) ---
using a similar bash command as above.
The bash command above will only print a list of files...