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 ...
- 08-21-2008 #1Just 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???
- 08-21-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
for exampleCode:cat /proc/interrupts | awk '{print $2;}'
- 08-21-2008 #3Linux User
- Join Date
- Aug 2006
- Posts
- 458
No need for cat
Code:awk '{print $2;}' /proc/interrupts
- 08-22-2008 #4Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Silly me. What was I thinking.


Reply With Quote