diff options
Diffstat (limited to 'rc/bin')
| -rwxr-xr-x | rc/bin/tinyurl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rc/bin/tinyurl b/rc/bin/tinyurl new file mode 100755 index 000000000..da4b695e0 --- /dev/null +++ b/rc/bin/tinyurl @@ -0,0 +1,7 @@ +#!/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 |
