X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=scripts%2Ffiles-from-date.sh;h=de98d4366d46250cce9eec3d93f7b7b83f5269fb;hb=3d773d9ad75c6f51dff6b317071be749b67393cb;hp=6680e9772395c9d59e8f74c30b6f9793e06a8a2c;hpb=64041aeff4045970d61980ebe08a06c647dd336c;p=backups%2F.git diff --git a/scripts/files-from-date.sh b/scripts/files-from-date.sh index 6680e97..de98d43 100755 --- a/scripts/files-from-date.sh +++ b/scripts/files-from-date.sh @@ -2,4 +2,4 @@ [ $# == 1 ] || exit 1 -awk --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