Add an example of how to use ldd -f.

This commit is contained in:
Bruce M Simpson 2008-05-15 10:43:11 +00:00
parent ebe306f11c
commit b65a4e880e

View File

@ -1,6 +1,6 @@
.\" $FreeBSD$
.\"
.Dd October 22, 1993
.Dd May 15, 2008
.Dt LDD 1
.Os
.Sh NAME
@ -57,6 +57,13 @@ option displays a verbose listing of the dynamic linking headers
encoded in the executable.
See the source code and include
files for the definitive meaning of all the fields.
.Sh EXAMPLES
The following is an example of a shell pipeline which uses the
.Fl f
option.
It will print a report of all ELF binaries in the current directory,
which link against libc.so.6:
.Dl "find . -type f | xargs -n1 file -F " " | grep ELF | cut -f1 -d' ' | xargs ldd '%A %o\en' | grep libc.so.6"
.Sh SEE ALSO
.Xr ld 1 ,
.Xr nm 1 ,