Re:Renaming files with mv without typing the name two times
by matt-attack on Monday April 13, 2020 @09:24PM
(#22861932)
Using echo is the wrong way. What you do is ‘CTRL-x *’. That will expand any glob right there on the command line.
[ Parent
| on HN ]
Re:Renaming files with mv without typing the name two times
by kazinator on Monday April 13, 2020 @09:31PM
(#22861966)
Brace expansion isn't a glob, unfortunately. Did you try it?
Re:Renaming files with mv without typing the name two times
by bruce_one on Tuesday April 14, 2020 @12:45AM
(#22862830)
I didn't know the `CTRL-x * ` expansion; it appears to work in zsh for brace expansion:
$ touch asdf-{gh,jk}-l
# CTRL-x *
$ touch asdf-gh-l asdf-jk-l