【发布时间】:2022-01-08 08:58:52
【问题描述】:
我想突出显示一个段落,然后执行xsel。
很多时候,xsel 会输出多行
$ xsel
The TCP/IP protocol suite is so named for two of its most important protocols:
Transmission Control Protocol (TCP) and Internet Protocol (IP). A less used
name for it is the Internet Protocol Suite, which is the phrase used in official
Internet standards documents. In this book, we use the more common, shorter
term, TCP/IP, to refer to the entire protocol suite.
\ No newline at end of selection
我想把它变成一行:
$ xsel
The TCP/IP protocol suite is so named for two of its most important protocols: Transmission Control Protocol (TCP) and Internet Protocol (IP). A less used name for it is the Internet Protocol Suite, which is the phrase used in official Internet standards documents. In this book, we use the more common, shorter term, TCP/IP, to refer to the entire protocol suite.
\ No newline at end of selection
有时,xsel 输出已经是单行。在这种情况下,我输入的将多行转换为单行的任何命令都应该忽略这个罕见的时刻。
【问题讨论】: