annotate bin/paste @ 1768:ce59f2644c41

<Jafet> echo -e \'#!/bin/sh\\ntopic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")\\n([ \\( "$topic" = "ngevd" \\) -a \\( -e wisdom/ngevd \\) ] && cat /dev/urandom && exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? \xc2\xaf\\(\xc2\xb0_o)/\xc2\xaf"; exit 1; }\\ncat "wisdom/$topic"\' > bin/q
author HackBot
date Fri, 25 Jan 2013 13:21:05 +0000
parents a40d4545807d
children abd74e63cd7a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
1 #!/bin/bash
e037173e0012 Initial import.
HackBot
parents:
diff changeset
2 if [ ! "$1" ]
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 then
e037173e0012 Initial import.
HackBot
parents:
diff changeset
4 PASTE=-
e037173e0012 Initial import.
HackBot
parents:
diff changeset
5 else
e037173e0012 Initial import.
HackBot
parents:
diff changeset
6 PASTE="$1"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
7 fi
e037173e0012 Initial import.
HackBot
parents:
diff changeset
8
e037173e0012 Initial import.
HackBot
parents:
diff changeset
9 PASTENUM="$RANDOM"
e037173e0012 Initial import.
HackBot
parents:
diff changeset
10
e037173e0012 Initial import.
HackBot
parents:
diff changeset
11 mkdir -p $HACKENV/paste
e037173e0012 Initial import.
HackBot
parents:
diff changeset
12
1507
a40d4545807d <oerjan> sed -i "s/paste.\'/paste./" bin/paste
HackBot
parents: 1506
diff changeset
13 url paste/paste."$PASTENUM"
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
14 cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"