一段无聊的shell

sh/bash/dash/ksh/zsh等Shell脚本
回复
gududehuo
帖子: 92
注册时间: 2008-05-25 22:58

一段无聊的shell

#1

帖子 gududehuo » 2009-02-06 22:34

while true;do
yuanlaistr=`xsel -p`;
[ "$yuanlaistr"x != ""x ] && [ "$houlaistr" != "$yuanlaistr " ] && houlaistr="$yuanlaistr"; echo "$houlaistr" | xsel -i -b
sleep 1
done
功能:实时把选中的文字复制到剪贴板

xiooli帖子时,发现xsel挺有意思,有没事干就写这个,实时复制选中的文本(不用点右键复制)

:em05 :em05 :em05
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 一段无聊的shell

#2

帖子 eexpress » 2009-02-06 23:23

原来,后来
你。。。 :em20 :em20 :em20
● 鸣学
vbs100
帖子: 17
注册时间: 2007-09-24 12:48

Re: 一段无聊的shell

#3

帖子 vbs100 » 2009-02-11 20:23

确实很无聊 在linux中选中的文本直接按mouse中键就粘贴进去了
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

Re: 一段无聊的shell

#4

帖子 bones7456 » 2009-02-11 20:39

:em20 :em20
关注我的blog: ε==3
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: 一段无聊的shell

#5

帖子 cnkilior » 2009-02-12 18:12

你看阿姨被你气的。。
头像
JustinLei
帖子: 87
注册时间: 2005-09-20 14:29
来自: 弯弯的月亮

Re: 一段无聊的shell

#6

帖子 JustinLei » 2009-02-16 16:34

:em05 :em05 :em05
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
联系:

Re: 一段无聊的shell

#7

帖子 lerosua » 2009-02-16 17:11

大家都是来水一下的 :em06
sadly
帖子: 5
注册时间: 2009-02-18 14:04

Re: 一段无聊的shell

#8

帖子 sadly » 2009-02-18 14:35

:em05 :em03 :em05
头像
solcomo
帖子: 2838
注册时间: 2007-04-25 13:12

Re: 一段无聊的shell

#9

帖子 solcomo » 2009-02-21 13:47

好神奇
..居然还有这种功能
:em03
♜♞♝♛♚♝♞♜
♟♟♟♟♟♟♟♟
♙♙♙♙♙♙♙♙
♖♘♗♕♔♗♘♖

☠☯⚔⚓☣☦☃☕
☹☻☪☭☬⚖⚛⚜
ℜℳℬ™ ℋℯℓ℘ ℳℭ
sƂɐʍ рǀɹoʍ əɥʇ oS
回复