plan9fox/rc/bin/ok
2013-09-18 15:03:50 -04:00

9 lines
245 B
Bash
Executable file

#!/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'