A small, fast, and modern utility command line tool for 'cp/mv' alternative or replacement that written in Go. It's also allows you to filter files based on filenames, extensions, or regular expressions during the copy or move process.
MIT License
A small, fast, and modern utility command line tool for 'cp/mv'
alternative or replacement that written in Go. It's also allows you to filter files based on filenames, extensions, or regular expressions during the copy or move process
.
To install cpz, clone the repository and run the following commands:
git clone https://github.com/Kei-K23/go-cpz.git
cd go-cpz
go build -o cpz
cpz cp [source] [destination] [flags]
-p, --progress
: Show a progress indicator during the copy operation.-f, --filter
: Exclude files by name. Provide multiple values as a comma-separated list.-e, --extensions
: Exclude files by extension. Provide multiple extensions as a comma-separated list (e.g., .log, .tmp).-r, --regex
: Exclude files by regular expression patterns.cpz cp /path/to/source/file.txt /path/to/destination/file.txt
cpz cp /path/to/source/directory /path/to/destination/directory -p
cpz cp /path/to/source /path/to/destination -f "README.md,.env"
This will exclude files named README.md and .env from being copied.
cpz cp /path/to/source /path/to/destination -e ".log,.tmp"
This will exclude files with the .log and .tmp extensions from being copied.
cpz cp /path/to/source /path/to/destination -r "^._*backup\.zip$,^old*._"
This will exclude files ending with backup.zip and files starting with old.
cpz mv [source] [destination] [flags]
-p, --progress
: Show a progress indicator during the move operation.-f, --filter
: Exclude files by name. Provide multiple values as a comma-separated list.-e, --extensions
: Exclude files by extension. Provide multiple extensions as a comma-separated list (e.g., .log, .tmp).-r, --regex
: Exclude files by regular expression patterns.cpz mv /path/to/source/file.txt /path/to/destination/file.txt
cpz mv /path/to/source/directory /path/to/destination/directory -p
cpz mv /path/to/source /path/to/destination -f "README.md,.env"
This will exclude files named README.md and .env from being moved.
cpz mv /path/to/source /path/to/destination -e ".log,.tmp"
This will exclude files with the .log and .tmp extensions from being moved.
cpz mv /path/to/source /path/to/destination -r "^._*backup\.zip$,^old*._"
This will exclude files ending with backup.zip and files starting with old.
cpz verify [source] [destination]
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome. Feel free to check the issues page for more information.