Photo by Luba Ertel / Unsplash

WSL Copy to Clipboard

Today I Learned May 12, 2022

When running commands in WSL sometimes you want to copy the output to the clipboard.

# Copy contents of the file to windows clipboard
cat myfile.txt | clip.exe

using xclip would just copy it to the linux clipboard

Tags

Frank Schmidt

Software Dev @ REDspace