Exclude files matching a regular expression

stow

stow --ignore={{regular_expression}} --target={{path/to/target_directory}} {{file1 directory1 file2 directory2}}

click the source code to copy install stow on any operating system with command-not-found.com