M
M
Mika Slepinin2016-12-30 11:40:11
linux
Mika Slepinin, 2016-12-30 11:40:11

How can I find out which command appears in the maximum number of help categories (man)?

Actually, the question is in the topic. I selected a column using awk, and then I don’t know how to do it.
The list of all mana in the system can be found:
man -k .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2016-12-30
@mikalaikaia

man sort
man uniq Head
-on solution:

man -k . | awk '{ print $1 }' | uniq -dc | sort -rn | head -1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question