annotate bin/aseen @ 5612:794f3859f02c

<tswett> learn sex is a board game which originated in Britain in the 1870s before spreading throughout Europe in the 1890s. Sex was introduced to the rest of the world by a book, "The Complete Guide to Sex", written and published by Taneb in 1932, based on Taneb\'s extensive experience with a wide variety of forms of European sex.
author HackBot
date Thu, 18 Jun 2015 01:06:51 +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