$ echo mv foo{x,y}bar
> the ability to edit a filename shown, in placeEasily done right in the command line. First, type this:
$ mv oldname _
The _ denotes the cursor.Now erase the last word using Ctrl-W:
$ mv _
Now pastte it twie with Ctrl-Y Ctrl-Y: $ mv oldname oldname _
Edit in place, submit.