Created
March 28, 2022 18:44
-
-
Save dustinbutterworth/6fca677e74fd86e6b0f617a0be6561ed to your computer and use it in GitHub Desktop.
Parse html
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
#!/usr/bin/env bash | |
xmlgetnext () { | |
local IFS='>' | |
read -d '<' TAG VALUE | |
} | |
cat $1 | while xmlgetnext ; do echo $TAG ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment