Guest User

Untitled

a guest
Feb 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. for filename in $( find . -name '*.txt' ); do scp "$filename" hostname:~/ ; done
  2.  
  3. cd /Parent directory
  4. find . -name '*.txt' | cpio -pdm /pathtowhereyouwanttocopy
  5.  
  6. cpio copies files into an archive. It reads a list of filenames
  7.  
  8. find searches the directory tree rooted at each given file name
  9.  
  10. -pdm for overwrite destination content
  11.  
  12. rsync -vr --stats --progress --include="*/" --include "*.txt" --exclude='*' SOURCE DEST
  13.  
  14. scp username@Y:/path/to/directory/on/remote/machine /path/to/destination/on/X/local/machine
  15.  
  16. rsync -vr --stats --progress --include="*/" --include "*.txt" --exclude='*' username@Y:/path/to/directory/on/remote/machine /path/to/destination/on/X/local/machine
Add Comment
Please, Sign In to add comment