Terminal Tips: Output System Info in XML

chaotic intransient prose bursts, Adriaan Tijsseling's blog,  points out something very cool that someone much smarter than me will find some very powerful use for. You can output data from the System Profiler application in XML via the terminal.  Simply type:

system_profiler -xml

Into a terminal window and an XML document is generated with your system details. The real power of this comes into play when you pipe the XML into another command and manipulate it.
 

Recommended