projects
/
backups
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1366e56
)
Add option to find-cmd.sh
author
Carl N. Baldwin
<cnb@Cone.local>
Sat, 22 Oct 2005 17:30:25 +0000
(11:30 -0600)
committer
Carl N. Baldwin
<cnb@Cone.local>
Sat, 22 Oct 2005 17:30:25 +0000
(11:30 -0600)
scripts/find-cmd.sh
patch
|
blob
|
history
diff --git
a/scripts/find-cmd.sh
b/scripts/find-cmd.sh
index 964dd15bfef542c08319903827d626dd78a63c6c..51a37493c12ae29511e93e15e93beedaf0d4d76e 100755
(executable)
--- a/
scripts/find-cmd.sh
+++ b/
scripts/find-cmd.sh
@@
-1,7
+1,9
@@
#!/bin/sh
+[ $# == 1 ] || exit 1
+
{
for type in d f l; do
- find
.
-type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0"
+ find
$1
-type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0"
done
}