welcome: please sign in
location: syno

syno

ist ein kleines Shell Script um die schnell die SYNOPSIS einer manpage auszugeben. Speziell fuer solche Siebhirne wie mich :)

KEY=$1
APPEND=$2

if [ -z $APPEND ]
   then
        APPEND=2
fi

if [ -z $KEY ]
   then
    exit 1
   else
    man $KEY | grep -A $APPEND 'S^HSY^HYN^HN'
fi

bisserl trickreich is das S^HSY^HYN^HN, das erzeugt wird durch Buchstabe, CTRL+V CTRL+H, Buchstabe. Warum das, da bin i jetzt zu faul aber schauts euch mal 'man test > test.manpage' im vi an und natuerlich die termcap ;)

syno (last edited 2008-07-14 09:55:43 by localhost)