On 2/19/26 20:53, Russell L. Harris wrote:
On Thu, Feb 19, 2026 at 08:43:52PM -0800, David Christensen wrote:
On 2/19/26 20:30, Russell L. Harris wrote:
In a directory with directories blog-1, blog-2, ... , blog-9, I was
trying to rename the directories, but I accidentally hit the RETURN
key after typing only "mv blog-*".?? Now, blog-1, blog-2, ... , blog-8
have disappeared, but blog-9 remains.
<snip>
blog-1 through blog-8 should be in directory blog-9.
<snip>
So they are! I thank you, David. You have saved me much grief.
From now on, I need to type in "xmv ..." and backspace to remove the x
only once my arguments are correct.
I am glad it worked out for you. :-)
If you are comfortable with Perl, you might want to take a look at the
rename(1p) command (provided by the Debian package "rename"):
https://manpages.debian.org/trixie/rename/prename.1p.en.html
David