Skip to content
Is there a way to paste to the shell what's in my clipboard?
Profile icon
lopecg

--

You are viewing a single comment. View All
Answered by Scoder12 [earned 5 cycles]
View Answer
Profile icon
TieDyeKatz

I am not too sure how you would input CTRL+V or CMD+V in a shell directly in Bash unless Readline is available for it (It's not unless you are using a Linux server). Otherwise, it will only do ^V as one character. If you know NodeJS, you can use the var readline = require('readline-sync') command to install Readline, and then by using the var <variablename> = readline.question("<yourquestion>") command, then you can paste directly.