summaryrefslogtreecommitdiff
path: root/rc/bin/webpaste
blob: c12835cc631bc3cc809987cc8a0dca6af677a59a (plain)
1
2
3
4
5
6
7
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'