comparison bin/paste @ 0:e037173e0012

Initial import.
author HackBot
date Thu, 16 Feb 2012 19:42:32 +0000
parents
children fa63d5796937
comparison
equal deleted inserted replaced
-1:000000000000 0:e037173e0012
1 #!/bin/bash
2 if [ ! "$1" ]
3 then
4 PASTE=-
5 else
6 PASTE="$1"
7 fi
8
9 PASTENUM="$RANDOM"
10
11 mkdir -p $HACKENV/paste
12
13 echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM"
14 cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"