Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37746741
en ru br
ALT Linux repos
S:0.0.1-alt2
5.0: 0.0.1-alt2
4.1: 0.0.1-alt2
4.0: 0.0.1-alt2
3.0: 0.0.1-alt1

Group :: Books/Faqs
RPM: rtfm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh

MANDIR=/usr/share/man
MANCMD=/usr/bin/man

PARMS=$1

if [ x$PARMS == 'x' ] || [ x$PARMS == 'xrtfm' ] || [ x$PARMS == 'xRTFM' ] || [ x$PARMS == 'xr.t.f.m.' ] || [ x$PARMS == 'xR.T.F.M.' ]; then
$MANCMD man
exit
fi

$MANCMD $PARMS 2>/dev/null && exit

for MANPG in $(/usr/bin/find $MANDIR -type f -name "*$PARMS*"); do
[ x$MANPG == 'x' ] && exit
$MANCMD $MANPG || exit
echo -n 'Read more help?: (y=enter/q)' && read next
if [ x$next == 'xq' ] || [ x$next == 'xQ' ]; then exit; fi
done
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin