Kurbis

Tech blog

When working on a complex command line, it's best to use editor. This can be done very simply in bash (AFAIK, might work on other shells as well), simply by defining the EDITOR environment variable and typing C-x C-e (i.e., Control-X Control-E). Afterwards, your editor will appear and you can edit the command line, save the file, and exit the editor. Done!

Tags: linux