Bash has hundreds of useful hacks and shortcuts. If you do repeated similar tasks like that, you might also want to get used to ^a^b which re-runs the last command but with a replaced with b. Also try Alt + . to quickly insert the last parameter of the prev command etc etc.