Mercurial > repo
annotate bin/bseen @ 1782:ced303a7cfe0
<shachaf> h! test
author | HackBot |
---|---|
date | Fri, 25 Jan 2013 14:14:12 +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 |