ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: andy Tatarinov <elephantum@dezcom.mephi.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: UNIX regular expressions
Date: 01 Oct 2002 13:57:27 +0400
Message-ID: <1033466247.30737.35.camel@zoo.dezcom.mephi.ru> (raw)
In-Reply-To: <3D9966A1.5090904@vzljot.ru>

> > Просветите, пожалуйста, с этими выражениями - не соображу, какое 
> > выражение написать для 'grep -E', чтобы он из лога squid'а выдирал 
> > определённый site для определённого user.
> > 
> > Этот мой писк:
> > site([[:alnum:][:punct:]])+[:blank:]user[:blank:]
> > естественно, не работает :)
> 
> Да, логи squid'а выглядят примерно так:
> ..... www.site.com/text2/text.html user .....

имя сайта надо переделывать из www.site.com в www\.site\.com потому что
точка - метасимвол

вот я тут подумал и получилось такое 

[el@zoo el]$ grep -E "site\.com(:\n+)?(/([[:alnum:][:punct:]])+)*/?
user"
www.site.com/text2/text.html user
www.site.com/text2/text.html user

-- 
...2b|!2b?

  parent reply	other threads:[~2002-10-01  9:57 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
2002-10-01 10:10     ` [Comm] Re: [JT] " Vitaly Ostanin
2002-10-01  9:57   ` andy Tatarinov [this message]
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=1033466247.30737.35.camel@zoo.dezcom.mephi.ru \
    --to=elephantum@dezcom.mephi.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