annotate bin/bseen @ 7094:4a2788609dc2

<b_jonas> learn Elendil decided to try to save Numenor from its awful end by navigating to the undying lands and appealing to the Valar, but then he changed his mind, saved his family only and founded a new empire in Middle-earth.
author HackBot
date Sat, 05 Mar 2016 22:07:12 +0000
parents 7914d7e0b500
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2114
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
1 #!/usr/bin/env bash
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
2 s="<${1% }>"
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
3 while ((i++ < 30)) && read -r file; do
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
4 line=
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
5 while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file"
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
6 [[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; }
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
7 done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
8 echo 'well, not lately'
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
9