2 ms·
Nice. I was trying to remember how to extract the summary lines by themselves. And yes, it's much faster (fewer execs, less manpage formatting and parsing).
by dredmorbius 14y ago
Nice. I was trying to remember how to extract the summary lines by themselves. And yes, it's much faster (fewer execs, less manpage formatting and parsing).
Note that your solution skips chroot (man section 8). The fix:
whatis -s1,8 $(dpkg -L coreutils | grep "bin/" | sed 's,^.*\/,,')