annotate bin/bseen @ 1860:483695a130f2
<shachaf> learn Thyme itself is only an abstract approximation of oregano.
author |
HackBot |
date |
Sat, 26 Jan 2013 22:43:15 +0000 |
parents |
d32a6933bc5d |
children |
|
rev |
line source |
1625
|
1 #!/usr/bin/env bash
|
|
2 s="<${1% }>"
|
|
3 while ((i++ < 30)) && read -r file; do
|
|
4 line=
|
|
5 while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file"
|
1629
|
6 [[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; }
|
1625
|
7 done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
|
|
8 echo 'well, not lately'
|
|
9
|