diff options
author | bms <bms@FreeBSD.org> | 2008-05-15 10:43:11 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2008-05-15 10:43:11 +0000 |
commit | d28bbf5fae8e389f8b436cd548369463d6e0789b (patch) | |
tree | c8f84f7af7ae903777364e694ab685944b166f5a /usr.bin/ldd | |
parent | 5bf9c97013b065964c934c4ced3a5b5c8b075279 (diff) | |
download | FreeBSD-src-d28bbf5fae8e389f8b436cd548369463d6e0789b.zip FreeBSD-src-d28bbf5fae8e389f8b436cd548369463d6e0789b.tar.gz |
Add an example of how to use ldd -f.
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r-- | usr.bin/ldd/ldd.1 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1 index 9dd7902..c857e4e 100644 --- a/usr.bin/ldd/ldd.1 +++ b/usr.bin/ldd/ldd.1 @@ -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 , |