This might have been answered already. But I wasn't able to find it.
directory directory/subdirectory/subdirectoryofsubdirectory directory/sub-subdirectory/subdirectoryofsub-subdirectory/subdirectoryofsubdirectoryofsub-subdirectory directory/sub-sub-subdirectory directory/sub-sub-sub-subdirectory
each directory and subdirectory contains files. I want to list them all, pipe the list to cat, and cat the list to a text file. Can this be done with a 'one liner'? If so, please provide it. Or does it require a script and, if so, what commands/structures will I need to write the script?