Pasting output from previous bash command as arguments

by patraulea
GNU/Linux ◆ xterm ◆ bash 1912 views

The output from non-interactive commands can be saved to a file using bash aliases, for loading it back into vim using a (Ctrl-G) shortcut. Fields such as IP addresses, files or anything else can then be yanked into the next bash command, without using a mouse.

Bashrc snippet: https://gist.github.com/harjoc/98d56def6011f5de7ea1f1900a912e5f