regex - making graphs with a shell script -


I need to create a graph with numeric values ​​in a time period, the value shows online users in a web page .

The script will be exectued with Cron in every 30 minutes and the required HTML file will be downloaded with wget. But there are some unanswered questions yet & amp; Problems:

-i needs to get only numerical values ​​from the html code (but grep gives the whole line), how can I get only numeric values? I can get a line with grep, it looks like:

  User Online: 24 917 & lt; / Div & gt;  

How can I get only 24 9 17?

- What would be easier? To generate the .svg file with the graph, or save the values ​​in a .csv file (and generate graph with OOO or something similar). Maybe some other good ideas?

Thanks in advance,

-jpg

or this:

  # Bash> = 3.2 (can be different for syntax 3.0 / 3.1) [[Line Line = ~ $ points]] num = $ {BASH_REMATCH [@] //}   < P> In your question to remove the number from the variable  $ line .  

Should be easily available. Some examples of its output can be found. < P> are.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -