#!/bin/bash # # paste output of commands directly to pastebin.ca # regards by dpecka alias nettezzaumana ## check for -h or --help option if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then echo -e 'usage :: `foo | pastebin.sh [-f]`'; exit; fi if test -z "$(wget --help | grep 'post-file=')"; then echo "seems like your wget can't upload files .. it's over"; exit; fi