Mercurial > repo
changeset 345:47a91a806235
<ais523> run sed -i '/grep -P/s/$/| sed "s=<[^>]*> =="/' bin/anonlog
author | HackBot |
---|---|
date | Sun, 29 Apr 2012 03:14:01 +0000 |
parents | 5257b57ce0f1 |
children | 4f4502729d5e |
files | bin/anonlog |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/anonlog Sun Apr 29 03:13:05 2012 +0000 +++ b/bin/anonlog Sun Apr 29 03:14:01 2012 +0000 @@ -1,7 +1,7 @@ #!/bin/sh cd /var/irclogs/_esoteric if [ "$1" ]; then - grep -P -i -- "$1" ????-??-??.txt | shuf -n 1 + grep -P -i -- "$1" ????-??-??.txt | shuf -n 1| sed "s=<[^>]*> ==" else file=$(shuf -en 1 ????-??-??.txt) echo "$file:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> =="