News for hackers. Stuff that matters.
Re:Ask HN: What are some terminal tricks you wish you knew s... by rat_melter on Monday July 22, 2019 @06:20PM (#20502840)

  $ mv file.text !#:1:r.txt
  evaluates to:
  $ mv file.text file.txt

  (colon separated)
  !# means this command
  1 is the position of the argument to be modified
  r means strip extension
There's tons of history modifiers and a lot to be learned reading `man bash`.

There are no comments on this comment yet.