News for hackers. Stuff that matters.
Re:Renaming files with mv without typing the name two times by kazinator on Tuesday April 14, 2020 @03:59AM (#22863642)
In my other post, I got the readline method down to one control code. You type "mv name" and hit the assigned control character, which produces a second copy of the name that you can edit in place. It works with any command: mv, cp, ln, git mv ... The editing is in the same command line, resulting in a proper argument that is in the command line. It gets saved into your history, and can be pasted into a script.

There are no comments on this comment yet.