annotate bin/anonlog @ 340:e9c4f64872b5

<ais523> run sed -i 's/>=/> =/' bin/anonlog
author HackBot
date Sun, 29 Apr 2012 02:37:27 +0000
parents 2105e89ffe69
children d18ed389b1c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
338
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
1 #!/bin/sh
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
2 cd /var/irclogs/_esoteric
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
3 if [ "$1" ]; then
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
4 grep -P -i -- "$1" ????-??-??.txt | shuf -n 1
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
5 else
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
6 file=$(shuf -en 1 ????-??-??.txt)
340
e9c4f64872b5 <ais523> run sed -i 's/>=/> =/' bin/anonlog
HackBot
parents: 338
diff changeset
7 echo "$file:$(shuf -n 1 $file)" | sed "s=<[^>]*> =="
338
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
8 fi
2105e89ffe69 <ais523> run sed '/echo/s/$/ | sed "s=<[^>]*>=="/' < bin/log > bin/anonlog
HackBot
parents:
diff changeset
9