From: "Dmitry E. Oboukhov" <node@avanto.mpei.ac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: UNIX regular expressions
Date: Tue, 01 Oct 2002 13:53:42 +0400
Message-ID: <3D9970A6.1020500@avanto.mpei.ac.ru> (raw)
In-Reply-To: <3D9966A1.5090904@vzljot.ru>
Vitaly Ostanin wrote:
> Vitaly Ostanin пишет:
>
>> Hello, All!
>>
>> Просветите, пожалуйста, с этими выражениями - не соображу, какое
>> выражение написать для 'grep -E', чтобы он из лога squid'а выдирал
>> определённый site для определённого user.
>>
>> Этот мой писк:
>> site([[:alnum:][:punct:]])+[:blank:]user[:blank:]
>> естественно, не работает :)
>
>
> Да, логи squid'а выглядят примерно так:
>
> ..... www.site.com/text2/text.html user .....
>
ну и напиши
"сайт"".*"имя пользователя"
точка - любой символ
звездочка - любое его повторение
все точки должны быть заслешены
вот например я смотрю как я ходил на ЛОР
grep "10\.1\.1\.15.*www.linux.org.ru" access.log
или я тебя не понял ?
next prev parent reply other threads:[~2002-10-01 9:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-01 8:56 [Comm] " Vitaly Ostanin
2002-10-01 9:10 ` [Comm] " Vitaly Ostanin
2002-10-01 9:53 ` Dmitry E. Oboukhov [this message]
2002-10-01 10:10 ` [Comm] Re: [JT] " Vitaly Ostanin
2002-10-01 9:57 ` [Comm] " andy Tatarinov
2002-10-02 4:09 ` [Comm] " Maxim Savrilov
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=3D9970A6.1020500@avanto.mpei.ac.ru \
--to=node@avanto.mpei.ac.ru \
--cc=community@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