I am trying to create a BASH script what would extract the data from HTML table.
Below is the example of table from where I need to extract data:
-
2020-11-30 12:10
You can use bash xpath (XML::XPath perl module) to accomplish that task very easily:
xpath -e '//tr[position()>1]' test_input1.xml 2> /dev/null | sed -e 's/<\/*tr>//g' -e 's/| //g' -e 's/<\/td>/ /g'
|