changeset 341:d18ed389b1c3

<ais523> run sed -i 's/shuf -n 1 $file/grep "<.*>" $file | shuf -n 1/' bin/anonlog
author HackBot
date Sun, 29 Apr 2012 02:47:09 +0000
parents e9c4f64872b5
children 92d104be8127
files bin/anonlog
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/anonlog	Sun Apr 29 02:37:27 2012 +0000
+++ b/bin/anonlog	Sun Apr 29 02:47:09 2012 +0000
@@ -4,6 +4,6 @@
     grep -P -i -- "$1" ????-??-??.txt | shuf -n 1
 else
     file=$(shuf -en 1 ????-??-??.txt)
-    echo "$file:$(shuf -n 1 $file)" | sed "s=<[^>]*> =="
+    echo "$file:$(grep "<.*>" $file | shuf -n 1)" | sed "s=<[^>]*> =="
 fi