X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Ffiles-from-date.sh;h=de98d4366d46250cce9eec3d93f7b7b83f5269fb;hb=43c6310a463aee1c2cbd882b81a596e429bc7f6c;hp=2db6fc228c378165e316fb3a00236dbd464360b7;hpb=446209a401eeef97eb5c4a9a79a6d5c4aab5df55;p=backups%2F.git 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