bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lame question


From: Aharon Robbins
Subject: Re: lame question
Date: Mon, 9 Feb 2004 16:58:31 +0200

Greetings. Re this:

> From: "Alexsey L. Nagorniy" <address@hidden>
> To: <address@hidden>
> Subject: lame question
> Date: Mon, 9 Feb 2004 16:26:44 +0200
>
> Hi!
>
> Why command
> # cat /var/run/dmesg.boot | awk '/irq/ {print gensub(/(^[a-z0-9]+[: ]).*(irq
> [0-9]+).*/, "\2", 1)}'
> prints only blank lines?

Try:

                                                                    vv
  ... awk '/irq/ {print gensub(/(^[a-z0-9]+[: ]).*(irq [0-9]+).*/, "\\2", 1)}'
                                                                    ^^

Note the extra backslash in the string for the replacement.

Also, 3.0.6 is old; the current version is 3.1.3.

Arnold




reply via email to

[Prev in Thread] Current Thread [Next in Thread]