Je dois obtenir la sortie de ioreg
sous Mac OS X pour un traitement ultérieur, mais la structure arborescente utilisée est difficile à analyser. Est-il possible d'obtenir la sortie en XML ou quelque chose de plus facile à analyser (comme system_profiler
)?Est-il possible d'obtenir la sortie de ioreg dans un format plus facilement analysable?
+-o Root <class IORegistryEntry, retain 12>
| {
| ...
| }
|
+-o MacBookPro5,1 <class IOPlatformExpertDevice, registered, matched, active, busy 0, retain 25>
| {
| ...
| }
|
+-o AppleACPIPlatformExpert <class AppleACPIPlatformExpert, registered, matched, active, busy 0, retain 51>
| | {
| | ...