Created
January 31, 2022 02:44
-
-
Save ThinGuy/dd535ef87261972fdc9534eb6ca5b0fc to your computer and use it in GitHub Desktop.
Create csv (or "p"sv in this case) from an htmltabl using htmltab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install pipx -yq | |
pipx install git+https://github.com/flother/htmltab | |
# Too many commas in table to make a CSV. Cleanup output and use pipes as the delimiter | |
(htmltab https://linux.dell.com/repo/community/openmanage|sed 's/,"|/|"/g;s/),"/)|/g;s/","/|/g;1s/,/|/g;s/,,/|/g;s/LTS,/LTS|/g;s/),v/)|v/g;s/),N/)|N/g;s/,\r$/|/g;s/(/ (/g')|tee ~/dell.psv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment