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.4~2 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%7Blink_activity%7D?a=commitdiff_plain;h=43c6310a463aee1c2cbd882b81a596e429bc7f6c;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