This command will find all the files of the given extensions in the current directory recursively, print the output to console and also write it to list_of_hidden_files
file in the current directory:
find . -regextype posix-extended -regex ".*\.(EXTENSIONS)" | tee list_of_hidden_files
where EXTENSION
can be any regex expression:
For example to look for .docx, doc, and odt just replace extensions for: