Rename Multiple Files On The Command Line With zmv In zsh
October - 2021
This will rename all the .mdx
files in the current directory to be .txt
files
autoload zmv
zmv '(*).mdx' '$1.txt'
one liner:
autoload zmv; zmv '(*).mdx' '$1.txt'
autoload is require because zmv
isn't loaded by default
via NyxKrage on twitch