News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by mrb on Tuesday April 14, 2020 @03:11AM (#22863426)
Interactively editing the filename is possible with this even simpler solution:

  mv foo.txt 
  ↑
  Alt-.
This works in bash and any shell using readline. Explanation: https://news.ycombinator.com/item?id=22863402
Re:Renaming files with mv without typing the name two times by bJGVygG7MQVF8c on Wednesday April 15, 2020 @04:55PM (#22882941)
Great tip thanks!

Similarly, readline's vi mode makes interactive editing in place easy