Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-piekarski/852572c81e195b930f297dc79c3df10f to your computer and use it in GitHub Desktop.
Save chris-piekarski/852572c81e195b930f297dc79c3df10f to your computer and use it in GitHub Desktop.
Get a random man page
alias randman='dir="/bin"; man $(ls $dir |sed -n "$(echo $(( $RANDOM % $(ls $dir |wc -l | awk "{ print $1; }" ) + 1 )) )p")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment