From 64041aeff4045970d61980ebe08a06c647dd336c Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Thu, 20 Oct 2005 11:45:35 -0600 Subject: [PATCH] Found an awk implementation of files-from-date --- scripts/Makefile.am | 2 +- scripts/files-from-date.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 scripts/files-from-date.sh diff --git a/scripts/Makefile.am b/scripts/Makefile.am index ae9e2f4..92bd941 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,5 +1,5 @@ bin_SCRIPTS = \ - files-from-date.rb \ + files-from-date.sh \ find-cmd.sh \ list-dates.sh \ other-commands \ 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 -- 2.34.1