On Mon, Mar 16, 2020 at 10:00:31PM +0100, Ingo Schwarze wrote:
> Hi Martijn,
> 
> Martijn van Duren wrote on Mon, Mar 16, 2020 at 09:24:26PM +0100:
> > On 3/16/20 9:22 AM, Ingo Schwarze wrote:
> >> Martijn van Duren wrote on Mon, Mar 16, 2020 at 08:52:54AM +0100:
> 
> >>> On 3/16/20 8:23 AM, Martin wrote:
> >>> If you want reading material find a function you don't understand and
> >>> lookup the manpage. If you want to have a more adventurous approach:
> >>> $ PAGE=$(ls /usr/share/man/man[23] | sort -R  | head -1); \
> >>> man ${PAGE##*.} ${PAGE%.*}
> 
> >> That can be simplified:
> >>   $ man -l $(ls /usr/share/man/man[23]/*.[23] | sort -R  | head -1)
> 

If you install random_run from packages,
you can go for

rr -1 man -l -- /usr/share/man/man[23]/*.[23]

that's precisely the kind of stupid thing it was built to handle.

Reply via email to