diff options
Diffstat (limited to 'randman.sh')
-rwxr-xr-x | randman.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/randman.sh b/randman.sh new file mode 100755 index 0000000..6a6c96a --- /dev/null +++ b/randman.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# randman.sh +# +# Opens a random man page from section 1: Executable programs or shell commands. +# Inspired by DistroTube: https://www.youtube.com/watch?v=vrN5SPeVUu0 + +man "$(find /usr/share/man/man1/ -type f | shuf | sed 1q | sed '{s|.*/||; s|\.gz$||}')" |