I am searching for files by name criteria: the list of files with the .h and .cpp extensions.

$ find . -name '*.h' -o -name '*.cpp' + +

the list of files with .h and .cpp extensions + the result is saved in the file list_of_txt_files.list

$ find . -name '*.h' -o -name '*.cpp' -print > list_of_txt_files.list

I am looking for the list of files with the .chm extension and I am destroying this list.

$ find . -name "*.chm" -type f -delete

Related articles