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
|
||||
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
|
||||
# tinyurl url
|
||||
for (url) {
|
||||
hget http://tinyurl.com/api-create.php?url'='$url
|
||||
echo
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue