Mercurial > repo
changeset 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 |
files | bin/seen2 |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/seen2 Tue Jan 22 10:02:18 2013 +0000 +++ b/bin/seen2 Tue Jan 22 10:03:16 2013 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vf="$(basename "$file" .txt)" -vs="^..:..:..: <${1% }>" '$0 ~ s{x=$0} END{if(!x) exit 1; print f,x}' "$file" && break; done +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