# HG changeset patch # User HackBot # Date 1366238806 0 # Node ID f2ef430d0223964de9ba3726a02021faff00853f # Parent f4a2725a0dcbe4c7e42d2d95a1a9dcc5a25f736e revert diff -r f4a2725a0dcb -r f2ef430d0223 bin/pastelog --- a/bin/pastelog Wed Apr 17 22:43:05 2013 +0000 +++ b/bin/pastelog Wed Apr 17 22:46:46 2013 +0000 @@ -16,7 +16,7 @@ if expr "$1" + 0 >/dev/null 2>&1; then pasterandom "$1" else - lines="$(timeout 25 grep -P -i -- "$1" ????-??-??.txt | head -n 301)" + lines=$(timeout 25 grep -P -i -- "$1" ????-??-??.txt | head -n 301) { echo "$lines" | head -n 300 [ $(echo "$lines" | wc -l) -eq 301 ] && echo "[too many lines; stopping]"