Mercurial > repo
view bin/paste @ 2084:82115f068ef9
<ais523> addquote <Taneb> I\'m a story about the prohibition of chocolate
author | HackBot |
---|---|
date | Mon, 11 Feb 2013 16:32:15 +0000 |
parents | 629eda98330d |
children | 1c1429d055bc |
line wrap: on
line source
#!/bin/bash if [ ! "$1" ] then PASTENUM="$RANDOM" mkdir -p $HACKENV/paste url paste/paste."$PASTENUM" cat > $HACKENV/paste/paste."$PASTENUM" else # Save making a file when it already exists. url "$1" fi