annotate bin/aseen @ 6807:2e2e43f55649
<hppavilion[1]> misle/rn mapole/A mapole is a thing boily made up. There\'s no such thing. Stop asking.
author |
HackBot |
date |
Wed, 10 Feb 2016 06:52:14 +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
|