annotate bin/aseen @ 2255:2eed7a363c07

<elliott> addquote <tswett> Hey, what VPN software should I use? <boily> tswett: openvpn. the one, the only, the open, the other qualifiers that begin with "o".
author HackBot
date Tue, 26 Feb 2013 16:32:52 +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 n="<${1% }>"; n="${n,,}"
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
3 while ((i++ < 30)) && read -r file
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
4 do awk -vf="${file##*/}" -vn="$n" 'tolower($2) ~ n{x=$0} END{if(!x) exit 1; print f,x}' "$file" && exit;
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
5 done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
6 echo "not lately"
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
7