I can confirm that...
my ($UUID) = `ioreg -d2 -c IOPlatformExpertDevice` =~ /^.*\bIOPlatformUUID\b.*"([^"]+)"\s*$/m or die "failed to parse ioreg";
...works on my Macbook.
In reply to Re^2: Read UUID on macOS from script
by stevieb
in thread Read UUID on macOS from script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |