Find the answer to your Linux question:
Results 1 to 4 of 4
HI, If I do cat /proc/interrupts, I getting following display. root:~> cat /proc/interrupts 6: 24879 BFIN Timer Tick 21: 0 BFIN_UART_RX 22: 39490 BFIN_UART_TX 39: 1213 smsc911x Err: 0 How ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    28

    need help

    HI,

    If I do cat /proc/interrupts, I getting following display.
    root:~> cat /proc/interrupts
    6: 24879 BFIN Timer Tick
    21: 0 BFIN_UART_RX
    22: 39490 BFIN_UART_TX
    39: 1213 smsc911x
    Err: 0

    How to extract only the interrupt count? i.e 24879???

  2. #2
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    Code:
     cat /proc/interrupts | awk '{print $2;}'
    for example

  3. #3
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    No need for cat
    Code:
    awk '{print $2;}' /proc/interrupts

  4. #4
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    Silly me. What was I thinking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...