Direct copy from terminal

New to Debian (Or Linux in general)? Ask your questions here!

Direct copy from terminal

Postby Agvaniot » 2017-08-01 19:22

i am trying to understand how "copy paste" is working in debian since im trying to come up with script
that automatically copy text from terminal.
thanks in adnvace
Agvaniot
 
Posts: 42
Joined: 2017-07-26 13:07

Re: Direct copy from terminal

Postby dasein » 2017-08-01 19:28

Instead of presupposing the solution, maybe share what the end goal is?
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Direct copy from terminal

Postby Agvaniot » 2017-08-01 19:30

dasein wrote:Instead of presupposing the solution, maybe share what the end goal is?

personal preference.
Agvaniot
 
Posts: 42
Joined: 2017-07-26 13:07

Re: Direct copy from terminal

Postby dasein » 2017-08-01 19:35

I can't help but wonder if the use-case might be nefarious given that it can't be shared.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Direct copy from terminal

Postby Dai_trying » 2017-08-01 20:01

One option would be to pipe the command output to a variable or file, that way it would be easily referenced inside your script, and much easier than trying to copy paste terminal output (shift+Ctrl+c to copy shift+Ctrl+v to paste).
Dai_trying
 
Posts: 319
Joined: 2016-01-07 12:25


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable