annotate paste/paste.30457 @ 12220:7eaf71f23fbe draft

<oerjan> learn \xce\xbe\xcf\x80\xce\xb1\xce\xbb\xce\xb1\xce\xb9\xce\xbf\xce\xbb\xcf\x8c\xce\xb3\xce\xbf\xcf\x82 is kspalaiologos\'s Ancient Greek twin. He was banned from the theater for making up invalid characters.
author HackEso <hackeso@esolangs.org>
date Sun, 01 Dec 2019 02:35:07 +0000
parents 42713ff67415
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1580
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
1 #!/bin/bash
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
2 if [ ! "$1" ]
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
3 then
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
4 PASTE=-
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
5 else
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
6 PASTE="$1"
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
7 fi
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
8
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
9 PASTENUM="$RANDOM"
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
10
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
11 mkdir -p $HACKENV/paste
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
12
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
13 url paste/paste."$PASTENUM"
42713ff67415 <fizzie> cat bin/paste | paste
HackBot
parents:
diff changeset
14 cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"