• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Snippet #627

Created 9/8/2010, updated 3/12/2020

Another Bash trick for repeating the last argument of the current command (ie. not the last argument of the last command, for which you would just use !$), bracket expansion: mv some/really/long/path{,.old}.

  • bash
  • snippets
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).