|
|
|
|
|
by ratbeard
3210 days ago
|
|
zmv is great for when doing mass renaming of files, in zshell. You can for example rename all .jade files to .pug with: autoload -U zmv # or put this line in your ~/.zshrc
zmv -w 'src/**/*.jade' 'src/$1$2.pug'
You can do a dry run by using the `-n` flag too. |
|
In the first invocation I prefer to do a "dry run", if it looks good I proceed removing the echo.
P.S. Your example above should use double quote instead of single quote, otherwise the content is not expanded by Zsh
P.P.S. One recall the pre/post operator looking at the symbols on a US keyboard, the post follows the variable symbol...