X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=find-cmd.sh;h=71972b6d30cd28e690463506ced9ab4e1b0ee79b;hb=8d352159cb90b923e34c879242ed7516418ec827;hp=14180f8a5ef12ee6e5f8857cf0e40846380fb572;hpb=8182442be7a7baca39cf2d0acae84407e8768ae4;p=backups%2F.git diff --git a/find-cmd.sh b/find-cmd.sh index 14180f8..71972b6 100755 --- 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