On Wed, Feb 23, 2011 at 17:11, Mircea Vutcovici
<mirceavutcov...@gmail.com> wrote:
> On Tue, Feb 22, 2011 at 7:41 AM, manuel "lonely wolf" wolfshant
> <wo...@prolinux.ro> wrote:
>> On 02/22/2011 02:09 PM, Florin Popovici wrote:
>>> `grep eth0 /proc/interrupts|cut -d \: -f 1 | awk '{print $1}'
>>
>>  awk 'BEGIN { FS = ":" } ; /eth0/ {print $1}' <  /proc/interrupts
>>
>
> LC_ALL=C  sed -r '/eth0/!d;s/(.*):.*eth0/\1/' </proc/interrupts

meh:
sed -n '/eth0/s/:.*//p' /proc/interrupts

Cu perl sigur se poate mai scurt decat  perl -lanF: -E 'say $F[0] if
/eth0/' /proc/interrupts dar n-am incercat.


-- 
Petre, goflin' between airstrikes.
_______________________________________________
RLUG mailing list
RLUG@lists.lug.ro
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui