annotate bin/aseen @ 6912:f6cfe22a201c
<lifthrasiir> ` (echo \'#!/bin/sh\'; echo \'echo Nice try.\') > bin/man && chmod a+x bin/man
author |
HackBot |
date |
Fri, 19 Feb 2016 06:08:34 +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
|