Extracting data from HTML table

前端 未结 7 771
迷失自我
迷失自我 2020-12-04 15:41

I am looking for a way to get certain info from HTML in linux shell environment.

This is bit that I\'m interested in :

7条回答
  •  悲哀的现实
    2020-12-04 16:09

    Assuming your html code is stored in a mycode.html file, here is a bash way:

    paste -d: <(grep '
' mycode.html | sed -e 's,,,g') <(grep '' mycode.html | sed -e 's,,,g')

note: the output is not perfectly aligned

提交回复
热议问题