From 565a4d478e4631ca771e5d0f9e9120420f557b3c Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Fri, 20 Sep 2013 11:32:42 -0400 Subject: rename /rc/bin/ok to /rc/bin/webpaste --- rc/bin/ok | 8 -------- rc/bin/webpaste | 8 ++++++++ sys/man/1/hget | 12 ++++++------ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100755 rc/bin/ok create mode 100755 rc/bin/webpaste diff --git a/rc/bin/ok b/rc/bin/ok deleted file mode 100755 index c12835cc6..000000000 --- a/rc/bin/ok +++ /dev/null @@ -1,8 +0,0 @@ -#!/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' 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' diff --git a/sys/man/1/hget b/sys/man/1/hget index f88c57e93..037bfd7dc 100644 --- a/sys/man/1/hget +++ b/sys/man/1/hget @@ -1,6 +1,6 @@ .TH HGET 1 .SH NAME -hget, hpost, ok, urlencode \- retrieve, post to a web page corresponding to a url +hget, hpost, webpaste, urlencode \- retrieve, post to a web page corresponding to a url .SH SYNOPSIS .B hget [ @@ -48,7 +48,7 @@ hget, hpost, ok, urlencode \- retrieve, post to a web page corresponding to a ur ] .I ... .PP -.B ok +.B webpaste .I file .PP .B urlencode @@ -178,7 +178,7 @@ flag), the file has to be seekable as .IR file (1) is invoked to determine its mime type. .PP -.I Ok +.I Webpaste uploads the contents either of its standard input or .I file to the pastebin website @@ -226,14 +226,14 @@ to .B http://okturing.com .IP .EX -% ns | ok +% ns | webpaste .EE .SH SOURCE .B /rc/bin/hget .br .B /rc/bin/hpost .br -.B /rc/bin/ok +.B /rc/bin/webpaste .br .B /sys/src/cmd/urlencode.c .SH "SEE ALSO" @@ -244,7 +244,7 @@ to .I Hget , .I hpost and -.I ok +.I webpaste require .IR webfs (4) service mounted on -- cgit v1.2.3