#!/bin/sh # # simple pastebin script for https://www.oetec.com/pastebin # [ $# -eq 1 ] && { days=$1 } || { days=7 } case $days in [0-7]) ;; *) echo " Usage: pipe output to | $0 [days] $0 [days] < redirect file to days = optional, number of days from 0-7 before paste expires Examples: cat /etc/hosts | $0 7 $0 < /etc/hosts " exit ;; esac curl -F post=pastebin -F pastefile=@- -F days=${days} https://www.oetec.com/post