Mercurial > repo
changeset 1689:cb2d5ca49bef
<c00kiemon5ter> fetch http://sprunge.us/QPGU
author | HackBot |
---|---|
date | Thu, 24 Jan 2013 12:40:23 +0000 |
parents | 0d68b046f554 |
children | ac3ca4deab24 |
files | QPGU |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/QPGU Thu Jan 24 12:40:23 2013 +0000 @@ -0,0 +1,7 @@ +#!/bin/bash +who="${1% }" who="${who,,}" +arr=(/var/irclogs/_esoteric/????-??-??.txt) +awk -vw="$who" -vOFS=":" ' +tolower($2) ~ w{x=$0} ENDFILE{if(x){print substr(FILENAME,1,10), x; exit}} +' < <(for ((i=${#arr[@]}-1; i>=0; i-- )); do echo ${arr[i]}; done) +