This blog post explains how you can pipe output to the Windows clipboard under Windows Subsystem for Linux (WSL). This is a repost of https://www.linkedin.com/pulse/wsl-write-shell-stream-windows-clipboard-john-west/.
You can use the clip.exe command to stream text from a shell command to the Windows clipboard. I use this technique in Windows Terminal with Windows Subsystem for Linux (WSL).
Because Unix interprets the commands clip and clip.exe as two different things, you may want to add a clip alias to the ~/.bashrc file ().
Then you can stream to the clipboard.
$ which clip.exe /mnt/c/Windows/system32/clip.exe $ alias clip=clip.exe $ grep alias .bashrc | clip $ which paste.exe $ vi aliases.txt #paste $ man bash | clip $ touch bash.docx ; winword bash.docx #paste
Unfortunately, there is no paste.exe.