annotate bin/aseen @ 5580:8876c212d16c
<int-e> ` echo It\\\'s neither clockwise nor counterclockwise nor otherwise. >> wisdom/wise
author |
HackBot |
date |
Mon, 15 Jun 2015 21:09:02 +0000 |
parents |
7914d7e0b500 |
children |
|
rev |
line source |
2114
|
1 #!/usr/bin/env bash
|
|
2 n="<${1% }>"; n="${n,,}"
|
|
3 while ((i++ < 30)) && read -r file
|
|
4 do awk -vf="${file##*/}" -vn="$n" 'tolower($2) ~ n{x=$0} END{if(!x) exit 1; print f,x}' "$file" && exit;
|
|
5 done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt)
|
|
6 echo "not lately"
|
|
7
|