You can use find command to recursively find all files in current and subfolders based on wildcard matching as shown in the below example –
## Find all files in current directoty based on a certain pattern
find . -name "*.txt"
## Find all files in a specific location based on a certain pattern
find /some/path/that/exists/ -name "*.txt"