X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Ffind-cmd.sh;h=51a37493c12ae29511e93e15e93beedaf0d4d76e;hb=8d4d4fb10ef1401eb1467ff97782e2b2b68539f5;hp=964dd15bfef542c08319903827d626dd78a63c6c;hpb=bd08bba973b9157a83116c7449fc16c12cc9cbcc;p=backups%2F.git diff --git a/scripts/find-cmd.sh b/scripts/find-cmd.sh index 964dd15..51a3749 100755 --- 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 }