From: Carl N Baldwin Date: Thu, 20 Oct 2005 17:02:40 +0000 (-0600) Subject: awk version of list-dates works faster X-Git-Tag: release-0.4~88 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/gitweb.css?a=commitdiff_plain;h=bd08bba973b9157a83116c7449fc16c12cc9cbcc;p=backups%2F.git awk version of list-dates works faster --- 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