annotate bin/aseen @ 4155:1e4bcd213420
<oerjan> echo \'A catamorphism is when you recurse too greedily and too deep.\' >wisdom/catamorphism
author |
HackBot |
date |
Tue, 10 Dec 2013 17:18:55 +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
|