How to open all the files in all the subdirectories of a folder

terminal

I'm trying to recursively open all the files in a folder, including its directories. I've been playing around with open /path/to/folder/*, and this will open all the files inside that folder but not include the sub-directories.

If I had a folder tree that looked like this:

Folder
>subfolder1
>>file1.jpg
>>file2.jpg
>subfolder2
>>file1.jpg
>>file2.jpg
>subfolder3
>>file.jpg

How could I open all the files in one terminal command?

Best Answer

I would suggest

find . | xargs open