From: Carl N. Baldwin Date: Sun, 16 Oct 2005 00:23:08 +0000 (-0600) Subject: Make find command work on OSX X-Git-Tag: release-0.4~112 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/images/%7Bupdate_day%7D?a=commitdiff_plain;h=755633063fbce984ec5ca7cfcbd65d9e9e96c1d7;p=backups%2F.git Make find command work on OSX --- 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