Instantly share code, notes, and snippets.

anonymous /gist:7346277
Created Nov 6, 2013

Embed
What would you like to do?
#!/bin/sh
displaySerNum=`system_profiler SPDisplaysDataType | grep "Display Serial Number" | awk '{ print $4 }'`
echo "<result>$displaySerNum</result>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment