Reuse text on a bash command
If I want to rename a file a few directories deep, how can I avoid repeating the path?
mv path/to/old_filename.txt path/to/new_filename.txt
I'm wondering if there's a way to make this:
mv path/to/old_filename.txt (?)new_filename.txt
(?) would be some way of saying "in the same directory."