gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] tlahelpgen script


From: Samium Gromoff
Subject: [Gnu-arch-users] tlahelpgen script
Date: Mon, 01 Dec 2003 16:56:23 +0300
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)


For people who wished to have a more convenient interface
to "tla help" and "tla $CMD -H" pair, here`s a script
which turns the plaintext "tla help" output into a
html page with links to each command`s respective "tla $CMD -H"
output:

============================
mkdir tlahelp
cd tlahelp
{
        echo "<pre>" > index.html
        tla help | (
                read str;
                while test ! -z "$str"; do
                        sed 's/^\([ ]*\)\([^ ]*\)\( : .*\)$/\1<a 
href="\2.html">\2<\/a>\3/'
                        read str;
                done
        ) >> index.html
        tla help | grep : | (
                read str;
                while test ! -z "$str"; do
                        echo $str | sed 's/^[ ]*\([^ ]*\) : .*$/\1/'
                        read str;
                done
        ) | (
                read str;
                while test ! -z "$str"; do
                        echo "<pre>" > "$str.html"
                        tla $str -H >> "$str.html"
                        read str;
                done
        )
}
cd ..
============================

To me, it looked like a useful idea to keep up with the
ever-changing tla interface.

regards, Samium Gromoff




reply via email to

[Prev in Thread] Current Thread [Next in Thread]