view bin/seen2 @ 1607:bdbf65d5dd91

<fizzie> sed -i -e \'s/END/BEGIN{IGNORECASE=1} END/\' bin/seen2
author HackBot
date Tue, 22 Jan 2013 10:03:16 +0000
parents 79de093483ec
children 97db09137fa1
line wrap: on
line source

#!/bin/sh
ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vf="$(basename "$file" .txt)" -vs="^..:..:..: <${1% }>" '$0 ~ s{x=$0} BEGIN{IGNORECASE=1} END{if(!x) exit 1; print f,x}' "$file" && break; done