X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=scripts%2Ffind-cmd.sh;h=51a37493c12ae29511e93e15e93beedaf0d4d76e;hb=cb9371796a05c3ab8e74310e78a8d75e980a7b19;hp=d9efb29b2a3ef011b82427ad865e0a909bc74831;hpb=cbfcd06cb32cc5c35bfb8ddb499cb952024068a4;p=backups%2F.git diff --git a/scripts/find-cmd.sh b/scripts/find-cmd.sh index d9efb29..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 %CS %p\0" + find $1 -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0" done }