Mercurial > repo
view paste/paste.30276 @ 11930:fbf2d501bfee draft
<fizzie> sled share/whatis//s/^hurl(1hackeso) - .*/hurl(1hackeso) - print URL to view version log of a hackenv file/
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 13 Sep 2019 09:32:59 +0000 |
parents | edc576a78ad1 |
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"