From 3c8acfd73cbb542a1701f59e598329af14bf2290 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 24 Sep 2020 09:57:27 +0200 Subject: [PATCH] ldd.1: Minor tweak to 'ldd' output example Signed-off-by: Michael Kerrisk --- man1/ldd.1 | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/man1/ldd.1 b/man1/ldd.1 index 683340baf..761417f97 100644 --- a/man1/ldd.1 +++ b/man1/ldd.1 @@ -20,20 +20,24 @@ ldd \- print shared object dependencies .B ldd prints the shared objects (shared libraries) required by each program or shared object specified on the command line. -An example of its use and output is the following: +An example of its use and output +(using +.BR sed (1) +to trim leading white space for readability in this page) +is the following: .PP -.in +2n +.in +4n .EX -$ \fBldd /bin/ls\fP - linux-vdso.so.1 (0x00007ffcc3563000) - libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f87e5459000) - libcap.so.2 => /lib64/libcap.so.2 (0x00007f87e5254000) - libc.so.6 => /lib64/libc.so.6 (0x00007f87e4e92000) - libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f87e4c22000) - libdl.so.2 => /lib64/libdl.so.2 (0x00007f87e4a1e000) - /lib64/ld-linux-x86-64.so.2 (0x00005574bf12e000) - libattr.so.1 => /lib64/libattr.so.1 (0x00007f87e4817000) - libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f87e45fa000) +$ \fBldd /bin/ls | sed \(aqs/^ */ /\(aq\fP + linux-vdso.so.1 (0x00007ffcc3563000) + libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f87e5459000) + libcap.so.2 => /lib64/libcap.so.2 (0x00007f87e5254000) + libc.so.6 => /lib64/libc.so.6 (0x00007f87e4e92000) + libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f87e4c22000) + libdl.so.2 => /lib64/libdl.so.2 (0x00007f87e4a1e000) + /lib64/ld-linux-x86-64.so.2 (0x00005574bf12e000) + libattr.so.1 => /lib64/libattr.so.1 (0x00007f87e4817000) + libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f87e45fa000) .EE .in .PP