ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Timur Batyrshin <batyrshin@ieml.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] netams документация
Date: Thu, 1 Nov 2007 12:17:38 +0300
Message-ID: <20071101121738.73eac0c2@batyrshin.ieml.ru> (raw)
In-Reply-To: <20071031220451.e9633530.gosha@anti.su>

Igor Solovyov (Wed, 31 Oct 2007 22:04:51 +0500):

> > > Сейчас в течении получаса накатал PHP
> > > скрипт собирающий из всех
> > > хтмл-ников в папке doc документации один
> > > файл. Естесственно красиво
> > > собирает, обрезая шапку и меню, разделяя
> > > разделы....
> > > Документация у меня к версии 3.3.2.
> > Где взять? =)
> Присоединяюсь к вопросу. :-)

Вот мой результат на коленке на перле:

#!/usr/bin/perl

$start=0;

while (<>) {
        $start=1 if ($_ =~ /doc_right/);
        $_ !~ /_counter_bottom/ || die;
        print $_ if $start;
}


Все файлы разом можно перекодировать так:

for file in `ls`; do 
	cat /usr/share/doc/netams-doc-ru/ $file | ~/prepnetamsdoc.pl \
							> ~/doc/$file; 
done


  reply	other threads:[~2007-11-01  9:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31  8:04 Timur Batyrshin
2007-10-31 13:52 ` LIO
2007-10-31 15:35   ` Timur Batyrshin
2007-10-31 17:04     ` Igor Solovyov
2007-11-01  9:17       ` Timur Batyrshin [this message]
2007-11-01 14:54         ` LIO
2007-11-01 15:10           ` Timur Batyrshin
2007-11-01 15:45             ` LIO
2007-11-01 14:29     ` LIO
2007-11-01 15:01     ` LIO
2007-11-01 15:13       ` Timur Batyrshin
2007-11-01 17:16         ` LIO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071101121738.73eac0c2@batyrshin.ieml.ru \
    --to=batyrshin@ieml.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git