Thank you very much for your answers!

On 05.04.2010 20:52 (UTC+1), Michael Butler wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/05/10 14:40, Garrett Cooper wrote:
On Mon, Apr 5, 2010 at 11:35 AM, Rainer Hurling<[email protected]>  wrote:

The example looks as follows:

find . -type f | xargs -n1 file -F | grep ELF | cut -f1 -d' ' | xargs ldd -f
'%A %o\n' | grep libc.so.6

[ .. snip .. ]

1. The file(1) usage looks incorrect (I get a lot of messages like the
following):

Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator]
[-m magicfiles] file...
        file -C -m magicfiles
Try `file --help' for more information.

2. It's no longer libc.so.6 for many versions of FreeBSD; it can
potentially be libc.so.7...

I want to create a list of binaries, which are linked against the old libz.so.5 and must be upgraded ...

find /usr/local/ -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o\n' | grep libz.so.5 > ~/libz.so.5.txt


Try ..

find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' \
  | xargs ldd -f '%A %o\n' | grep libc.so.[67]

;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAku6MVIACgkQQv9rrgRC1JLrXgCZAauZv2h8SrqkKdJNL5Xpv9KN
ml8An20zgpbjrJVZ2XdLc6/HVch69f3w
=sBOs
-----END PGP SIGNATURE-----

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to