分页: 1 / 1

goo.gl

发表于 : 2011-01-28 14:46
eexpress

代码: 全选

● 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`
}

Re: goo.gl

发表于 : 2011-01-29 0:52
Yume
先下载什么,然后又改什么,是这样的吧? :em06

Re: goo.gl

发表于 : 2011-02-07 14:12
tusooa

代码: 全选

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 ~ 
●