awk version of list-dates works faster
authorCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Thu, 20 Oct 2005 17:02:40 +0000 (11:02 -0600)
committerCarl N Baldwin <cnb@hpsvcnb.fc.hp.com>
Thu, 20 Oct 2005 17:02:40 +0000 (11:02 -0600)
scripts/Makefile.am
scripts/find-cmd.sh
scripts/list-dates.sh [new file with mode: 0755]

index 6711a003ea687e3b96121d3a7345c482dac3246c..ae9e2f46e29fd544f46ddf73ee20cf60a4bff919 100644 (file)
@@ -1,7 +1,7 @@
 bin_SCRIPTS = \
   files-from-date.rb \
   find-cmd.sh \
-  list-dates.rb \
+  list-dates.sh \
   other-commands \
   rsync-cmd.sh
 
index d9efb29b2a3ef011b82427ad865e0a909bc74831..964dd15bfef542c08319903827d626dd78a63c6c 100755 (executable)
@@ -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 (executable)
index 0000000..1e6b501
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+awk 'BEGIN { RS="\0" } {print$7}' | sort -u