rename -n 's/(.*)/new$1/' *
not working on zsh or bash
.
.
Bash output
➜ learnBash bash
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$
bash-3.2$ rename -n 's/(.*)/new$1/' *
bash: rename: command not found
bash-3.2$
bash-3.2$
.
.
ZSH output
➜ learnBash rename -n 's/(.*)/new$1/' *
zsh: command not found: rename
➜ learnBash