Created
June 1, 2021 03:22
-
-
Save chris-piekarski/852572c81e195b930f297dc79c3df10f to your computer and use it in GitHub Desktop.
Get a random man page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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