• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Snippet #627

Created 9/8/2010, updated 3/12/2020
  • bash
  • snippets

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}.

← Snippet #628
Snippet #626 →

All snippets

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

Made by Greg Hurrell with Rust (with help from Git and Neovim).