Replies: 1 comment 1 reply
-
Do you have an example expected output for the given XML above? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good morning,
the XML file below contains serial numbers of machines, each of which has a set of variables that I need to extract.
The challenge that I am facing is that these variables may or may not be "dirty" (= not yet committed to the management server).
Efficiency matters, as the actual XML file that I am working with is ~6 MByte, I have thousands of machines, and each machine has roughly 20 variables.
I know that I could pipe the result of dasel into sed to strip the XML attributes:
Or I could run dasel twice:
However, I would like to know if there is an elegant, pure dasel solution that does not double my runtime.
Thanks a lot in advance
Martin
Beta Was this translation helpful? Give feedback.
All reactions