Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2012 15:27:39 -0400
From:      Matthew Story <matthewstory@gmail.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Eugen Konkov <kes-kes@yandex.ru>, freebsd-questions@freebsd.org
Subject:   Re: find -printf
Message-ID:  <CAB+9ogfHqBj6v28b0VpqzxExq9MauG9iQS7gGRjB=Xo-Xyc1xQ@mail.gmail.com>
In-Reply-To: <A74FC256-1C7E-4669-AA49-C13D758B9E85@mac.com>
References:  <143422657.20120420220833@yandex.ru> <A74FC256-1C7E-4669-AA49-C13D758B9E85@mac.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, Apr 20, 2012 at 3:12 PM, Chuck Swiger <cswiger@mac.com> wrote:

> On Apr 20, 2012, at 12:08 PM, Eugen Konkov wrote:
> > checking 'man find' there is no -printf parametr.
> >
> > Does FreeBSD has different version of find utility compare to linux?
>
> Yes.  Linux comes with GNU find.
>
> > Maybe some knows workaroud for that?
>
> Install GNU find.
>

If you are working in a heterogenous environment, and do not want to
install lots of tools for consistency, I would recommend sticking to the
POSIX defined functionality/behaviors in all cases:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

If you only use functionality that is defined there, it should work on all
modern find implementations, regardless of OS, etc (that's more or less the
entire reason for the specification ...).  For older systems you might want
to stick to the 2004 specification:

http://pubs.opengroup.org/onlinepubs/009604599/utilities/find.html


>
> Regards,
> --
> -Chuck
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



-- 
regards,
matt



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAB+9ogfHqBj6v28b0VpqzxExq9MauG9iQS7gGRjB=Xo-Xyc1xQ>