Re:Renaming files with mv without typing the name two times
by wruza on Tuesday April 14, 2020 @06:02AM
(#22864215)
Who uses that when you have butterflies?
But if one needs to see the name before committing a change, there is https://superuser.com/questions/215950/how-to-expand-on-bash...
Re:Renaming files with mv without typing the name two times
by Certhas on Tuesday April 14, 2020 @06:14AM
(#22864272)
That's useful, thanks!
Re:Renaming files with mv without typing the name two times
by kelnos on Thursday April 16, 2020 @06:04AM
(#22887797)
Sigh. Nearly every Linux/macOS/UNIX box you run into will have bash or something that will do brace expansion. Same goes for having standard tools like sed, awk, echo, etc.
You can't say the same thing about a bespoke shell function that gives you editable renames.
> Sure you can come up with "reasons" to do things differently, but, not by argument, but by fiat, I tell you that they are irrelevant and my way is strictly the better way to do things.
That's not what anyone is doing and you're attacking a straw man.
You see, a shell really isn't necessary to interact with a computer. The big advantage is that, as you are working on the physical laws they will be the same at any computer you will use! It's the only solution that is universal. No need to remember whether the machine you're working on has Windows or Linux installed!
Sure you can come up with "reasons" to do things differently, but, not by argument, but by fiat, I tell you that they are irrelevant and my way is strictly the better way to do things.