From 43c6310a463aee1c2cbd882b81a596e429bc7f6c Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Tue, 29 Nov 2005 20:55:16 -0700 Subject: [PATCH] I'm having trouble with {7,7} in gawk on ubuntu. So, I am using the more verbose work-around. --- scripts/files-from-date.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/files-from-date.sh b/scripts/files-from-date.sh index 2db6fc2..de98d43 100755 --- a/scripts/files-from-date.sh +++ b/scripts/files-from-date.sh @@ -2,4 +2,4 @@ [ $# == 1 ] || exit 1 -gawk --posix 'BEGIN { RS="\0" } { d=$7; gsub( /^([^ ]*[ ]){7,7}/, "" ); if ( date == d ) printf "%s\0",$0 }' date=$1 +awk 'BEGIN { RS="\0" } { d=$7; sub( /^([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])([^ ]*[ ])/, "" ); if ( date == d ) printf "%s\0",$0 }' date=$1 -- 2.34.1