annotate paste/paste.30276 @ 12500:e48c08805365 draft default tip

<b_jonas> ` learn \'The password of the month is Cthulhuquagdonic Mothraquagdonic Narwhalicorn.\' # https://logs.esolangs.org/libera-esolangs/2024-04.html#lKE Infinite craft
author HackEso <hackeso@esolangs.org>
date Wed, 01 May 2024 06:39:10 +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"