Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rsync --include='*.txt' --exclude='*' ./* /tmp/test
- --include='*.txt' --> include only files with *.txt extension
- --exclude='*' --> exclude everything except what is specified in --include
- ./* --> source directory, referring to everything inside current directory; replace with <dir_name>/* according to your case
- /tmp/test --> destination where to copy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement