annotate paste/paste.30276 @ 730:5d444713145e
<atriq> learn iwc contains puns! Puns galore! Puns after puns after puns! Also science!
author |
HackBot |
date |
Thu, 04 Oct 2012 19:46:39 +0000 |
parents |
edc576a78ad1 |
children |
|
rev |
line source |
590
|
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" |