I have more than 90 subdirectories and inside each one, there will be a number of .txt files.What I need to do is to copy all those txt files out to one single directory.How can I do that?
How use minimum number of commands to copy all .txt files from all subdirectories to one directory?
files;cp;file copy
use command :find . -name *.txt -exec cp {} /path/to/destination \;