I am looking for a way to get certain info from HTML in linux shell environment.
This is bit that I\'m interested in :
-
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,*th>,,g') <(grep ' | ' mycode.html | sed -e 's,*td>,,g')
note: the output is not perfectly aligned
|