diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2022-12-28 23:49:21 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2022-12-28 23:54:29 +0000 |
commit | 43dc1409c139c39056bafdcd4d083230ccb10b50 (patch) | |
tree | a2b9cd94183352042b9fe8b1ec2624a0a55bfc4a /usr.bin/ldd | |
parent | f45feecfb27ca51067d6789eaa43547cadc4990b (diff) | |
download | src-43dc1409c139c39056bafdcd4d083230ccb10b50.tar.gz src-43dc1409c139c39056bafdcd4d083230ccb10b50.zip |
Restricting xargs to '-n1' is much slower and isn't needed for file(1)
Also note that libc.so.6 is an older version of libc (thus why you'd
want to find files linked against it).
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r-- | usr.bin/ldd/ldd.1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1 index d263eabcf4ff..47a7fff9f778 100644 --- a/usr.bin/ldd/ldd.1 +++ b/usr.bin/ldd/ldd.1 @@ -59,8 +59,8 @@ 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.*dynamically' | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep libc.so.6" +which link against the old libc.so.6: +.Dl "find . -type f | xargs file -F ' ' | grep 'ELF.*dynamically' | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep -F libc.so.6" .Sh SEE ALSO .Xr ld 1 , .Xr nm 1 , |