Copy shell script output to clipboard

Viewed 42097

Is there any easy way to implement the copy to clipboard option from the output of a shell script ?

6 Answers

With WSL2 and sudo you can use this:

echo "What so ever..." | /mnt/c/Windows/System32/clip.exe
Related