view bin/paste @ 6834:0ef2e2f974c5

<hppavilion[1]> mislearn mycology is a Befunge-98 (also -93 to some extent) testsuite that can be found at https://deewiant.iki.fi/projects/mycology/
author HackBot
date Sat, 13 Feb 2016 00:55:51 +0000
parents 56dcce63901b
children 916b38c83c3b
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