summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2013-09-18 15:03:50 -0400
committerstanley lieber <stanley.lieber@gmail.com>2013-09-18 15:03:50 -0400
commit4d9ce0fb3cb85fe5d41826d29c2fdebbacfe56db (patch)
tree7839a6fc3722e19938e09e2af01033f81516e566 /rc
parent171aafcc229b0b2d1fb058d09eb4170008f91eb6 (diff)
downloadplan9front-4d9ce0fb3cb85fe5d41826d29c2fdebbacfe56db.tar.xz
add /rc/bin/ok, tool for okturing.com pastebin
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/ok8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/bin/ok b/rc/bin/ok
new file mode 100755
index 000000000..c12835cc6
--- /dev/null
+++ b/rc/bin/ok
@@ -0,0 +1,8 @@
+#!/bin/rc
+if(~ $#* 0)
+ file=/fd/0
+if not
+ file=$1
+hpost -u http://okturing.com -p / a_body@$file submit:submit fake:fake a_func:add_post url: |
+grep -e '\/body\"' |
+sed 1q | sed 's/^.*href=\"//g; s/body\".*$/body/g; s/^/http:\/\/okturing.com/g'