Mercurial > repo
view bin/paste @ 60:7cad01ed74f0
<oerjan> addquote <ais523> bleh, why doesn't tab-complete work in mkdir for the name of the new directory
author | HackBot |
---|---|
date | Sat, 03 Mar 2012 23:30:15 +0000 |
parents | e037173e0012 |
children | fa63d5796937 |
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"