plan9fox/rc/bin/tinyurl

8 lines
173 B
Text
Raw Normal View History

2011-07-29 21:36:19 +00:00
#!/bin/rc
if(! ~ $#* 1) {
echo usage: tinyurl http://research.swtch.com/2008/02/hideous-name.html >[1=2]
exit usage
}
hget http://tinyurl.com/api-create.php?url'='$1
echo