projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8182442
)
Make find command work on OSX
author
Carl N. Baldwin
<cnb@Cone.local>
Sun, 16 Oct 2005 00:23:08 +0000
(18:23 -0600)
committer
Carl N. Baldwin
<cnb@Cone.local>
Sun, 16 Oct 2005 00:23:08 +0000
(18:23 -0600)
find-cmd.sh
patch
|
blob
|
history
diff --git
a/find-cmd.sh
b/find-cmd.sh
index 14180f8a5ef12ee6e5f8857cf0e40846380fb572..71972b6d30cd28e690463506ced9ab4e1b0ee79b 100755
(executable)
--- a/
find-cmd.sh
+++ b/
find-cmd.sh
@@
-1,5
+1,7
@@
#!/bin/sh
-time find . \
- \( -type d -o -type f -o -type l \) \
- -printf "%y %#m %g %u %s %CDT%CT %p\0" > list
+{
+ for type in d f l; do
+ find . -type $type -printf "$type %#m %g %u %s %CY%Cm%Cd%CH%CM%CS %p\0"
+ done
+} > list