script uCurl table data using regular expression to send to a database

后端 未结 1 676
小鲜肉
小鲜肉 2021-01-26 16:12

I have a device on my network that is posting data to an html page. I need to be able to collect the data from the page and insert it into my database so I can have historical

相关标签:
1条回答
  • 2021-01-26 16:36

    use C5:1<|C5:5<|C5:13 to identify the rows, then use look ahead [0-9]+(?=..) to capture only those digits

    grep -Po '[0-9]+(?=[^0-9]+(C5:2<|C5:6<|C5:13))'
    

    returns

    290
    1868
    187
    
    0 讨论(0)
提交回复
热议问题