Let's say currently my terminal looks like the following:
neekoy@mypc:~/some/folder$ echo "lala nana"
lala nana
neekoy@mypc:~/some/folder$ l
entrypoint.js helpers/ node_modules/ package.json package-lock.json
neekoy@mypc:~/some/folder$
I want to copy the fourth line from the bottom (the one that contains "lala nana").
I can obviously write a script that uses tput to save the cursor position, switch my cursor's position to a specific line, copy it, and then return to the previous cursor position.
Is there an existent solution or an easier way to accomplish this though?