skip to Main Content

Extract table from html table using bash

Hello I've a problem with parsing the html table using bash script. I managed to take table but extracting the data is not going so well. The table content looks like this: <tr><td><small>1</small></td><td>Kalisz</td><td>62-800</td><td>Poland</td><td>Greater Poland</td><td>Kalisz</td><td>Kalisz<tr><td></td><td colspan=6>&nbsp;&nbsp;&nbsp;<a href="/maps/browse_51.75_18.087.html" rel="nofollow"><small>51.75/18.087</small></a></td></tr> <tr class="odd"><td><small>2</small></td><td>Piotrków Trybunalski</td><td>97-300</td><td>Poland</td><td>Łódź…

VIEW QUESTION

Ubuntu – How to sed the "\" in variable in bash

The following bash is used to replace the "$source_product" with "$source_product" + "linefeed" + "$target_product". Here is the bash script: source_product="$(LOCAL_DIR)/source \" target_product="$(LOCAL_DIR)/target \" echo "source_product: $source_product" echo "target_product: $target_product" echo "" echo "--- replace source with source+target ---" echo…

VIEW QUESTION
Back To Top
Search