X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Ffiles-from-date.sh;fp=scripts%2Ffiles-from-date.sh;h=6680e9772395c9d59e8f74c30b6f9793e06a8a2c;hb=64041aeff4045970d61980ebe08a06c647dd336c;hp=0000000000000000000000000000000000000000;hpb=bd08bba973b9157a83116c7449fc16c12cc9cbcc;p=backups%2F.git diff --git a/scripts/files-from-date.sh b/scripts/files-from-date.sh new file mode 100755 index 0000000..6680e97 --- /dev/null +++ b/scripts/files-from-date.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +[ $# == 1 ] || exit 1 + +awk --posix 'BEGIN { RS="\0" } { d=$7; gsub( /([^ ]*[ ]){7,7}/, "" ); if ( date == d ) printf "%s\0",$0 }' date=$1