News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by SEJeff on Tuesday April 14, 2020 @09:50AM (#22865909)
I came to this thread hoping someone wrote exactly what you did, otherwise I was going to do it myself. Thanks

For others not aware of this functionality, it is a well documented and old bash feature:

https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.ht...

If you want to go deeper into the weeds, the parameter substitution bits are also very useful:

https://www.tldp.org/LDP/abs/html/parameter-substitution.htm...

There are no comments on this comment yet.