* [devel] Hello new grep!
@ 2010-03-25 15:26 Led
2010-03-25 15:39 ` Dmitry V. Levin
0 siblings, 1 reply; 4+ messages in thread
From: Led @ 2010-03-25 15:26 UTC (permalink / raw)
To: ALT Linux Team development discussions
Здравствуй новый, "правильный" grep!
$ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[[:digit:]]+' /proc/stat
cpu0 39641 0 11029 101634 11400 281 243 0 0
cpu1 27475 0 48586 90130 1763 0 3 0 0
cpu2 33675 0 15007 120071 1696 0 7 0 0
cpu3 29776 0 39065 98772 1373 0 6 0 0
$ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[0-9]+' /proc/stat
$ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[1-2]+' /proc/stat
cpu2 34465 0 16070 128355 1701 0 7 0 0
cpu3 31309 0 45963 99936 1373 0 7 0 0
$ cat /proc/stat | LC_COLLATE=C egrep '^cpu[0-9]+' /proc/stat
cpu0 41141 0 11292 112957 11509 304 253 0 0
cpu1 28968 0 50902 99790 1763 0 3 0 0
cpu2 34755 0 16104 131568 1704 0 7 0 0
cpu3 31766 0 46380 102599 1373 0 7 0 0
$ rpm -q grep
grep-2.6-alt1
--
Led
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Hello new grep!
2010-03-25 15:26 [devel] Hello new grep! Led
@ 2010-03-25 15:39 ` Dmitry V. Levin
2010-03-25 15:52 ` Led
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2010-03-25 15:39 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
On Thu, Mar 25, 2010 at 05:26:27PM +0200, Led wrote:
> Здравствуй новый, "правильный" grep!
>
> $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[[:digit:]]+' /proc/stat
cat тут немного лишний.
> cpu0 39641 0 11029 101634 11400 281 243 0 0
> cpu1 27475 0 48586 90130 1763 0 3 0 0
> cpu2 33675 0 15007 120071 1696 0 7 0 0
> cpu3 29776 0 39065 98772 1373 0 6 0 0
> $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[0-9]+' /proc/stat
Это, наверное, https://bugzilla.altlinux.org/23228
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Hello new grep!
2010-03-25 15:39 ` Dmitry V. Levin
@ 2010-03-25 15:52 ` Led
2010-03-25 15:57 ` Dmitry V. Levin
0 siblings, 1 reply; 4+ messages in thread
From: Led @ 2010-03-25 15:52 UTC (permalink / raw)
To: ALT Linux Team development discussions
On Thursday 25 March 2010 17:39:39 Dmitry V. Levin wrote:
> On Thu, Mar 25, 2010 at 05:26:27PM +0200, Led wrote:
> > Здравствуй новый, "правильный" grep!
> >
> > $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[[:digit:]]+'
> > /proc/stat
>
> cat тут немного лишний.
Да, необязательный. Я делал и так и эдак.
>
> > cpu0 39641 0 11029 101634 11400 281 243 0 0
> > cpu1 27475 0 48586 90130 1763 0 3 0 0
> > cpu2 33675 0 15007 120071 1696 0 7 0 0
> > cpu3 29776 0 39065 98772 1373 0 6 0 0
> > $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[0-9]+' /proc/stat
>
> Это, наверное, https://bugzilla.altlinux.org/23228
Похоже, потому как проявляется именно на диапазонах - обычные перечисления
(например, [0123456789]) - работают.
--
Led
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] Hello new grep!
2010-03-25 15:52 ` Led
@ 2010-03-25 15:57 ` Dmitry V. Levin
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry V. Levin @ 2010-03-25 15:57 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 965 bytes --]
On Thu, Mar 25, 2010 at 05:52:57PM +0200, Led wrote:
> On Thursday 25 March 2010 17:39:39 Dmitry V. Levin wrote:
> > On Thu, Mar 25, 2010 at 05:26:27PM +0200, Led wrote:
> > > Здравствуй новый, "правильный" grep!
> > >
> > > $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[[:digit:]]+'
> > > /proc/stat
> >
> > cat тут немного лишний.
>
> Да, необязательный. Я делал и так и эдак.
>
> > > cpu0 39641 0 11029 101634 11400 281 243 0 0
> > > cpu1 27475 0 48586 90130 1763 0 3 0 0
> > > cpu2 33675 0 15007 120071 1696 0 7 0 0
> > > cpu3 29776 0 39065 98772 1373 0 6 0 0
> > > $ cat /proc/stat | LC_COLLATE=en_US.UTF-8 egrep '^cpu[0-9]+' /proc/stat
> >
> > Это, наверное, https://bugzilla.altlinux.org/23228
>
> Похоже, потому как проявляется именно на диапазонах - обычные перечисления
> (например, [0123456789]) - работают.
Я проверил, это в точности та же самая ошибка. Сейчас отправлю на сборку
исправленный пакет.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-25 15:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 15:26 [devel] Hello new grep! Led
2010-03-25 15:39 ` Dmitry V. Levin
2010-03-25 15:52 ` Led
2010-03-25 15:57 ` Dmitry V. Levin
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