* [devel] Q: pcre grep
@ 2005-03-18 21:18 Alexey Tourbin
2005-03-19 1:26 ` [devel] " Alexey Tourbin
2005-03-19 2:14 ` Alexey Tourbin
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Tourbin @ 2005-03-18 21:18 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 141 bytes --]
А грепнуть по pcre-выражению?
$ grep -P '^\s*while' lib/*.pm
grep: The -P option is not supported
$
[[:space:]] не предлагать... :)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [devel] Re: Q: pcre grep
2005-03-18 21:18 [devel] Q: pcre grep Alexey Tourbin
@ 2005-03-19 1:26 ` Alexey Tourbin
2005-03-19 2:14 ` Alexey Tourbin
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2005-03-19 1:26 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
On Sat, Mar 19, 2005 at 12:18:17AM +0300, Alexey Tourbin wrote:
> А грепнуть по pcre-выражению?
>
> $ grep -P '^\s*while' lib/*.pm
> grep: The -P option is not supported
> $
Если пересобрать grep в среде с libpcre-devel, то -P будет работать.
Правда, чтобы такой grep нормально работал в нештатных ситуациях, нужно
libpcre.so.* переложить в /lib. Так что обзавёлся ~/bin/grep'ом.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [devel] Re: Q: pcre grep
2005-03-18 21:18 [devel] Q: pcre grep Alexey Tourbin
2005-03-19 1:26 ` [devel] " Alexey Tourbin
@ 2005-03-19 2:14 ` Alexey Tourbin
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Tourbin @ 2005-03-19 2:14 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
On Sat, Mar 19, 2005 at 12:18:17AM +0300, Alexey Tourbin wrote:
> А грепнуть по pcre-выражению?
Нашел пакет pcre-grep и утилиту pcregrep(1). Ж)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-19 2:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-18 21:18 [devel] Q: pcre grep Alexey Tourbin
2005-03-19 1:26 ` [devel] " Alexey Tourbin
2005-03-19 2:14 ` Alexey Tourbin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git