English 中文(简体)
是否有可能将炮兵指挥结果lip入空板?
原标题:Is is possible to put into clipboard the result of a shell command?

Imagine I do:

echo $PATH

在终点站。 是否可自动复制结果,以便如果我确实做到Ctrl+y,则将予以印刷? 我的理解是,在码头上做Ctrl+k时,案文在属于终点站的记忆缓冲中保存,因此,我认为这样做是可能的。

任何想法?

最佳回答

Depends.lav, Mac或Windows?

mac有以下指令:pbcopypbpaste,以便复制和复制纸张上的物品。

表格(c):

echo $PATH | pbcopy

Paste Example (mac):

echo "$(pbpaste -Prefer txt)"

硫丹使用X,有多个影印-帕斯特缓冲器(有些与纸板类似,但涉及的不多)。

http://www.kfish.org/software/xsel/“XSel复制/paste 指挥将采用与影印/pbpaste相同的形式。

复印件:

echo $PATH | xsel --clipboard

paste :

echo "$(xsel --output --clipboard)"

对于窗户来说,你可以使用clip,允许同样的复制/paste功能。

复印件:

set %PATH% | clip

我通常使用LC/Unix,因此,我没有像过去一样从Windows的纸板上接过。

问题回答

暂无回答




相关问题
KornShell- Creating a fixed width text file

I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...

unix find command

how to use the find command to find files/directories which are not matching the pattern. for eg: find <some options > -name "dontfile.txt" should give me output of all the find whose file ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

1. 露台式照像

在Windows XP中,没有一时出现指挥时,是否有办法操作一种灰色文字? 我常常需要把“善待”(工作)与“灰色”同起来,即使我的文字没有产出,......

热门标签