On 2007-11-28, Mark South wrote:
>
>
> On Wed, 28 Nov 2007 13:04:16 -0500, Chris F.A. Johnson wrote:
>
>>> Does anyone know a website where a complete list of Terminal commands
>>> (and full details for each command) for Gibbon 7.1 can be found?
>>
>> man $( ls ${PATH//:/ } )
>
> Sorry, won't do - rubric failure. The OP wants a website.
{
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">'
printf "<title>%s</title>\n" "Linux man pages"
echo "<h1>Linux man pages</h1>"
echo "<ul>"
{
ls ${PATH//:/ } |
while read cmd
do
page=$( MANWIDTH=60 man "$cmd" 2>/dev/null ) || continue
htmlpage=$cmd.html
{
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">'
printf "<title>%s man page</title>\n" "$cmd"
echo "<pre>"
printf "%s\n" "$page" | col -b
echo "</pre>"
} > "$htmlpage"
printf "<li><a href=\"%s\">%s</a></li>\n" "$htmlpage" "$cmd"
done
} | sort
echo "</ul>"
} > index.html
<http://cfaj.siteholding.net>
> PS :-)
>
> PPS I think your response deserves the "most laconic and simulataneously
> complete response" award for November.
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence