From: Carl N Baldwin Date: Wed, 30 Nov 2005 03:55:16 +0000 (-0700) Subject: I'm having trouble with {7,7} in gawk on ubuntu. So, I am using the more verbose... X-Git-Tag: release-0.3 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Bdelete%7D?a=commitdiff_plain;h=ad78a374c0ce156d7e260745feead3901e1f3ff6;p=backups%2F.git I'm having trouble with {7,7} in gawk on ubuntu. So, I am using the more verbose work-around. --- 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