代码: 全选
● type googl
googl 是一个函数
googl ()
{
curl -s -d "url=${1}" http://goo.gl/api/url | sed -n "s/.*:\"\([^\"]*\).*/\1\n/p" | xsel -i;
echo `xsel -o`
}
代码: 全选
tlcr: 0 辛卯年一月五日 13:53 ~
● ds tinyurl.bash
#!/bin/bash
scriptName=tinyurl.bash
pkgver=0.1
. scriptFunctions
wgetpaste -u "$(xsel)" | \
#sed -re "s/.*:(.+)$/\1/p" | xsel -i
sed -e 's/^Your paste can be seen here: //' | xsel -i
notify-send "Tinyurl 短地址 OK."
tlcr: 0 辛卯年一月五日 14:06 ~
● g tinyurl < ~/.fvwm/config
Key u A 4 Exec exec tinyurl.bash
tlcr: 0 辛卯年一月五日 14:06 ~
●
代码: 全选
] ls -ld //