News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by TheDong on Monday April 13, 2020 @10:42PM (#22862263)
> Anyone have a way to hack that to cut the two 'mv's down to one?

Yup:

    mv -bS .bak file{.new,}
Should give the same result if you're using gnu coreutils 'mv', though it's obviously not as generally useful as nested braces.

There are no comments on this comment yet.