From b65a4e880e9ef4dbe058695a897a793fd917b806 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Thu, 15 May 2008 10:43:11 +0000 Subject: [PATCH] Add an example of how to use ldd -f. --- usr.bin/ldd/ldd.1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1 index 9dd7902fae03..c857e4ece00d 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 ,