logoalt Hacker News

wpollocktoday at 6:42 PM0 repliesview on HN

Here's a handy shell script to show only the options from a command's man page:

   showoptions() {
      man -s 1 "$*" |col -bx |awk '/^[ ]*-/,/^$/' |less
   }
(Won't work for every man page, but most of them where options start with a dash.)

Enjoy!