|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Get value by parsing string
How can I get the number of threads from the following string?
Uptime: 32127 Threads: 1 Questions: 13647 Slow queries: 19 Opens: 2568 Flush tables: 1 Open tables: 64 Queries per second avg: 0.425 |
|
#2
|
||||
|
||||
|
What OS and shell are you using?
|
|
#3
|
|||
|
|||
|
I ended up doing
cut -d" " -f5 thanks |
|
#4
|
||||
|
||||
|
Ahhhh... I always forget about the cut command. I don't think there is an UNIX OS in existance without it. Glad you got it figured out.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Get value by parsing string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|