diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2013-09-20 11:32:42 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2013-09-20 11:32:42 -0400 |
commit | 565a4d478e4631ca771e5d0f9e9120420f557b3c (patch) | |
tree | 2accd1ebb9e6dac737f143ad9946a9f4f7efea66 /rc/bin/webpaste | |
parent | 5e2478ccbb7927256f72cb749cf1a8d97dbbd4e9 (diff) | |
download | plan9front-565a4d478e4631ca771e5d0f9e9120420f557b3c.tar.xz |
rename /rc/bin/ok to /rc/bin/webpaste
Diffstat (limited to 'rc/bin/webpaste')
-rwxr-xr-x | rc/bin/webpaste | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/bin/webpaste b/rc/bin/webpaste new file mode 100755 index 000000000..c12835cc6 --- /dev/null +++ b/rc/bin/webpaste @@ -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' |