Terminal Shortcut for Renaming a File

If you've ever been annoyed that you have to retype the full path and file name when you want to rename a file in the Unix terminal, this command will help you shortcut it.

For example, instead of having to run:

mv scripts.rb scripter.rb

You can run:

mv script{s,er}.rb

And you'll get the same result.