changeset 1628:625badf1c433

<c00kiemon5ter> fetch http://sprunge.us/YPLg
author HackBot
date Tue, 22 Jan 2013 13:47:53 +0000
parents f49784a5a4c5
children d32a6933bc5d
files YPLg
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/YPLg	Tue Jan 22 13:47:53 2013 +0000
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+s="<${1% }>"
+while ((i++ < 30)) && read -r file; do
+	line=
+	while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file"
+	[[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; }
+done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
+echo 'well, not lately'
+