How to move (or copy) all the selected files from several subdirectories to one single directory?
find [from_dir_name] -iname "[your file names like *.txt]" -exec mv {} [target dir name] \;
Just change mv to cp to copy.
Good luck.
If you got one or more of the following errors try to use the command below:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_GB.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Try to reinstall the local languages: (english pack)
sudo apt-get install --reinstall language-pack-en