aboutsummaryrefslogtreecommitdiff
path: root/randman.sh
blob: 6a6c96a628c8f2bdcad90ea2dc468c59456ebf11 (plain)
1
2
3
4
5
6
7
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$||}')"