view paste/paste.5734 @ 6950:70e3abb6d6fa

<ais523> le/rn cat introduction/cat introduction is the process of piping one or more extra `cat` commands into your pipeline; occasionally this is even actually useful
author HackBot
date Wed, 24 Feb 2016 06:07:01 +0000
parents 6568d45e3294
children
line wrap: on
line source

#!/bin/bash
if [ ! "$1" ]
then
    PASTE=-
else
    PASTE="$1"
fi

PASTENUM="$RANDOM"

mkdir -p $HACKENV/paste

echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM"
cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"