tinyurl: geoff's rewrite accepts multiple URLs
This commit is contained in:
parent
d33f36ccf9
commit
c251b16db0
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
if(! ~ $#* 1) {
|
# tinyurl url
|
||||||
echo usage: tinyurl http://research.swtch.com/2008/02/hideous-name.html >[1=2]
|
for (url) {
|
||||||
exit usage
|
hget http://tinyurl.com/api-create.php?url'='$url
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
hget http://tinyurl.com/api-create.php?url'='$1
|
|
||||||
echo
|
|
||||||
|
|
Loading…
Reference in a new issue