Mercurial > repo
view bin/paste @ 4559:e2ee7b1acfa9
<oerjan> learn gaspasjo is a norwegian soup, which died out due to a lack of hot summer days
author | HackBot |
---|---|
date | Mon, 14 Apr 2014 22:33:37 +0000 |
parents | 7f957c1f4661 |
children | 1bc67ded06c4 |
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