Hello monks
I can read the UUID from Terminal with the following:
ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOPlatformUUID/{print $(NF-1)}'I need to do the same from a Perl script. My solution is not working:
$UUID = (`ioreg -d2 -c IOPlatformExpertDevice | awk -F\" '/IOP +latformUUID/{print $(NF-1)}'`); print $UUID;
It is complaining with sh: -c: line 0: unexpected EOF while looking for matching `"'. Why?
In reply to Read UUID on macOS from script by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |