【发布时间】:2019-09-22 06:36:04
【问题描述】:
使用 Linux Subsystem for Windows (LSW),clip.exe 可用于将数据复制到 windows 剪贴板:
$ clip.exe /?
CLIP
Description:
Redirects output of command line tools to the Windows clipboard.
This text output can then be pasted into other programs.
Parameter List:
/? Displays this help message.
Examples:
DIR | CLIP Places a copy of the current directory
listing into the Windows clipboard.
CLIP < README.TXT Places a copy of the text from readme.txt
on to the Windows clipboard.
有没有办法通过管道FROM 剪贴板?预期用途示例:
$ paste.exe > foo.txt
$ paste.exe | tr , '\n' | clip.exe
【问题讨论】:
-
为什么没有得到更多的关注?这是一个非常明显(且不方便)的疏忽
标签: clipboard windows-subsystem-for-linux