annotate paste/paste.30276 @ 9273:4d88066c879e

<shachaf> ` mkx \'bin/Binary//echo "$@"\'; mkx \'bin/binary//Binary file bin/binary matches\'
author HackBot
date Thu, 13 Oct 2016 22:56:42 +0000
parents edc576a78ad1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
590
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
1 #!/bin/bash
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
2 if [ ! "$1" ]
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
3 then
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
4 PASTE=-
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
5 else
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
6 PASTE="$1"
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
7 fi
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
8
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
9 PASTENUM="$RANDOM"
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
10
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
11 mkdir -p $HACKENV/paste
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
12
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
13 echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM"
edc576a78ad1 <kallisti> run paste "`which paste`"
HackBot
parents:
diff changeset
14 cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"