changeset 1694:616fe709f5e6

<c00kiemon5ter> sed -i \'s/awk/gawk/\' bin/nseen
author HackBot
date Thu, 24 Jan 2013 12:46:15 +0000
parents f24c0982c1fb
children 7b39af120554
files bin/nseen
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/nseen	Thu Jan 24 12:45:59 2013 +0000
+++ b/bin/nseen	Thu Jan 24 12:46:15 2013 +0000
@@ -1,7 +1,7 @@
 #!/bin/bash
 who="${1% }" who="${who,,}"
 arr=(/var/irclogs/_esoteric/????-??-??.txt)
-awk -vw="$who" -vOFS=":" '
+gawk -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)