How to beautify XML text on command line in Ubuntu

sudo apt install libxml2-utils
echo 'your xml stuff here' | xmllint --format -

You will get a beautiful well-organized XML output.

Sources:

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , , , , . Bookmark the permalink.

Leave a comment