From bd08bba973b9157a83116c7449fc16c12cc9cbcc Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Thu, 20 Oct 2005 11:02:40 -0600 Subject: [PATCH] awk version of list-dates works faster --- scripts/Makefile.am | 2 +- scripts/find-cmd.sh | 2 +- scripts/list-dates.sh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 scripts/list-dates.sh diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 6711a00..ae9e2f4 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,7 +1,7 @@ bin_SCRIPTS = \ files-from-date.rb \ find-cmd.sh \ - list-dates.rb \ + list-dates.sh \ other-commands \ rsync-cmd.sh diff --git a/scripts/find-cmd.sh b/scripts/find-cmd.sh index d9efb29..964dd15 100755 --- a/scripts/find-cmd.sh +++ b/scripts/find-cmd.sh @@ -2,6 +2,6 @@ { for type in d f l; do - find . -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS %CS %p\0" + find . -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0" done } diff --git a/scripts/list-dates.sh b/scripts/list-dates.sh new file mode 100755 index 0000000..1e6b501 --- /dev/null +++ b/scripts/list-dates.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +awk 'BEGIN { RS="\0" } {print$7}' | sort -u -- 2.34.1