From: Grigory Milev <week@altlinux.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [JT][mdk-re] Mail from cron
Date: Wed Oct 17 19:16:13 2001
Message-ID: <87u1wyfgbr.fsf@pc349.belcaf.minsk.by> (raw)
In-Reply-To: <921637573.20011017184807@au.ru>
>>>>> "balamut" == balamut <balamut@au.ru> writes:
balamut> Hello cornet,
balamut> Monday, October 08, 2001, 5:51:49 PM, you wrote:
c> Balamut wrote:
>>>
c> skip.
>>> Потом я даже прибавил путь /usr/share/doc к стандартному пути и он мне
>>> проиндексировал ~13000 документов. Я радовался, теперь искать что-то в
>>> доках по ключевым словам стало так же удобно как в Винде.
c> Ну, батенька, ежели поиск в винде для Вас удобен - Вы просто великий
c> аскет! :-)) По мне, так лучшего и быстрейшего поиска по ключам нежели
c> было реализовано в хелпере OS/2 никому еще не удалось сделать.
balamut> Все таки спрошу еще раз, кто чем пользуется для поиска по
balamut> ключевому слову? Знаю, что можно заставить grep выводить две-три
balamut> соседние строчки из файла (-C кажется), но ведь она ищет только
balamut> по .txt файлам, по man-ам она не ищет, они кажется в сжатом виде
balamut> хранятся на диске.
balamut> А как в каталоге /usr/share/doc во всех этих .html-ах искать?
balamut> Htdig очень удобен, но из khelpcenter-а его изъяли, а зря. Теперь
balamut> на знаю, как htdig натравить на этот каталог
Да вариантов много:
по манам можно воттак:
find /usr/share/man -type f -name "*.bz2" -exec sh -c 'bzcat {} | grep "Chego tam ischem"' \;
по html и того проще:
find <html path> -type f -name "*.htm*" -exec sh -c 'cat {}| grep "Chego-to tam"' \;
если хочется выкинуть html'ые тэги, можно сделать вот-так:
find <html path> -type f -name "*.htm*" -exec sh -c 'lynx -dump {}| grep "Chego-to tam"' \;
Правда эти варианты далеко не самые быстрые, но я как-то привык таким образом выискивать.
--
/ Grigory Milev
---
Life too beautiful and interest...
Don't worry, be happy.
next prev parent reply other threads:[~2001-10-17 19:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 12:42 [mdk-re] " Roman S
2001-10-02 12:46 ` Artem K. Jouravsky
2001-10-08 14:57 ` Re[2]: " Vladimir Karpinsky
2001-10-08 17:34 ` Re[3]: " Balamut
2001-10-08 17:50 ` [JT][mdk-re] " cornet
2001-10-17 18:46 ` Balamut
2001-10-17 19:16 ` Grigory Milev [this message]
2001-10-17 20:23 ` Re[2]: " Maksim Otstavnov
2001-10-18 8:41 ` Michael Shigorin
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=87u1wyfgbr.fsf@pc349.belcaf.minsk.by \
--to=week@altlinux.ru \
--cc=mandrake-russian@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git