view bin/paste @ 5086:295d813612d3

<fizzie> ! glass {M[mxA!a1=b0=c(10)=/ccc*1xs.?=\\]}
author HackBot
date Sat, 18 Oct 2014 21:48:01 +0000
parents 1bc67ded06c4
children
line wrap: on
line source

#!/bin/bash
if [ "$1" ] && url "$1" 2>/dev/null # Save making a file when it already exists.
then
    true
else
    PASTENUM="$RANDOM"

    mkdir -p $HACKENV/paste

    url paste/paste."$PASTENUM"
    cat -- "${1--}" > $HACKENV/paste/paste."$PASTENUM"
fi