Pattern-Based File Extraction Script
This script will extract any files matching the pattern to and move them to the destination path, preserving relative file structure and permissions.
If we have Windows shortcut files ending in .lnk in the following locations:
/source-dir/foo.lnk
/source-dir/directory/subdirectory/bar.lnk
Executing patstract with destination as /dest-dir and pattern *lnk will remove these two linked files from the source-dir, and place them in the destination directory as:
/dest-dir/foo.lnk
/dest-dir/directory/subdirectory/bar.lnk
See the LICENSE file.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request