Find all files with the extension .txt or .doc in the current directory, replace all forward slashes with one forward slash, and copy the files to the Documents folder in the home directory.
find . -iname "*.txt" -o -iname "*.doc" | tr -s '/' | xargs -I FILE cp FILE $(echo $HOME/Documents)