I ask because I get very different results.

<<< ${PATH} tr : '\n' |
while read folder ; do
  echo == ${folder}
  find ${folder}/ -type f -executable |
  rev |
  cut -d / -f1 |
  rev |
  xargs -t -n1 man -w 2>&1 |
  cat -n
done |
tee /tmp/file.list.man.txt


$ wc -l /tmp/file.list.man.txt
2863 /tmp/file.list.man.txt


$ grep -c 'No manual' /tmp/file.list.man.txt
114


$ echo $(( 114*1000/( 2863 / 2 ) ))
79


Using the above method, fewer than 8% do NOT have manual pages, i.e. 92% do
have man pages, which exceeds your original estimate of 50-75%.  If nothing
else, it's a much smaller problem space for your AI project.

Regards,
- Robert






On Sat, Mar 23, 2024 at 9:48 AM Robert Citek <[email protected]> wrote:

>
> On Fri, Mar 22, 2024 at 6:04 PM American Citizen <
> [email protected]> wrote:
>
>> A few years ago, I took my Linux OS which is openSuse Leap v15.3 or so
>> and ran a check on the documentation such as the man1 through man9 pages
>> (run the %man man command to pull all this up) versus the actual
>> executables on the system.
>>
>> I was surprised to find < 15% of the command executables were
>> documented. Naturally I was hoping for something like 50% to 75%.
>
>
> Can you provide data to back up that assertion?  For example, a script.
>
> Regards,
> - Robert
>
>
>
>
>
>
>
>

Reply via email to