Merging release-0.3.1
[backups/.git] / scripts / files-from-date.sh
index 6680e9772395c9d59e8f74c30b6f9793e06a8a2c..de98d4366d46250cce9eec3d93f7b7b83f5269fb 100755 (executable)
@@ -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