Skip to content

Instantly share code, notes, and snippets.

@richlowe
Created Apr 27, 2019
Embed
What would you like to do?
#!/bin/ksh
catman -M proto/root_i386/usr/share/man
for elt in $(sed -e 's/ - .*//' proto/root_i386/usr/share/man/whatis | tr ',' '\n' | sed -e 's/(/./' -e 's/)//'); do
sect=${elt##*.}
if [[ ! -e proto/root_i386/usr/share/man/man${sect}/${elt} ]]; then
print -u2 "Missing: $elt"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment