Found an awk implementation of files-from-date
[backups/.git] / scripts / files-from-date.sh
diff --git a/scripts/files-from-date.sh b/scripts/files-from-date.sh
new file mode 100755 (executable)
index 0000000..6680e97
--- /dev/null
@@ -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