Created
June 29, 2022 04:35
-
-
Save sohang3112/c74012e52da0db98c4b0dd2d5772c507 to your computer and use it in GitHub Desktop.
Repeatedly show random Manpages (forever!)
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
#!/usr/bin/sh | |
# A Random Manpage shows, you read it, then press "q" | |
# ... and then you get the next random manpage | |
# Exit using Ctrl+Z (SIGKILL) | |
for cmd in `man -k . | cut -d ' ' -f1 | shuf`; do | |
man $cmd; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment