I'm interested to know if there is any way to copy a line from a file and place it in the next terminal's command line.
This line would be the next command or a fraction of it, being possible to still edit in the command line.
And, of course, everything throught the terminal.
Regards, Vinicius SIlva
echo echo hi > file; var="$(tail -n1 file)"; echo $var
? – Arkadiusz Drabczyk Jan 18 '21 at 22:56