cwget is a minimal file operation tool that supports copy, move, and rename using simple flags. It also includes a lightweight path alias system using /// prefixes for faster navigation and scripting.
It behaves like standard system tools (cp, mv) but adds shorthand path expansion.
- Copy files and folders (
cp -rf) - Move files (
mv -f) - Rename files (
mv -f) - Built-in path aliases:
///r→////h→$HOME///usr→/usror$PREFIX///envusr→$SR
- Silent execution (no extra output)
- Direct system exit codes
chmod +x cwgetOptional system-wide install:
mv cwget /usr/local/bin/cwget <source> -C <destination>Example:
cwget ///h/file.txt -C ///h/backup/file.txtcwget <source> -M <destination>Example:
cwget ///h/file.txt -M ///r/tmp/file.txtcwget <source> -R <newname>Example:
cwget ///h/old.txt -R ///h/new.txt| Alias | Expands To |
|---|---|
///r |
/ |
///h |
$HOME |
///usr |
/usr or $PREFIX |
///envusr |
$SR |
- No help messages or UI output
- Overwrites files if required (system default behavior)
- Exit codes:
0→ success- non-zero → error from underlying system command
cwget is designed to be:
- Minimal
- Predictable
- Script-friendly
- Close to native system behavior