X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=scripts%2Ffind-cmd.sh;h=51a37493c12ae29511e93e15e93beedaf0d4d76e;hb=5c8c182b0f51eaa5fca5f917ed5cda5f12fb7366;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 }