Skip to content

Instantly share code, notes, and snippets.

@felixmon
Last active October 17, 2020 02:16
Show Gist options
  • Save felixmon/df74ed2621ddbabda032d74d60be7e77 to your computer and use it in GitHub Desktop.
Save felixmon/df74ed2621ddbabda032d74d60be7e77 to your computer and use it in GitHub Desktop.
Linux (mv or cp) specific files from a text list of files
rsync -a /source/directory --files-from=/full/path/to/listfile /destination/directory

example:

rsync -a ./source --files-from=./list.txt ./new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment