Edit a text file which already has a > symbol, use the keyboard (shift + arrow keys) to select, ctrl-C to copy, then paste into terminal in the middle of the whole command.