Posted on 08-25-2015 08:50 AM
Greetings folks,
I'm attempting to create a custom install for CrashPlan PROe and our usernames in crashplan are our email addresses. Our email addresses are firstname.lastname@example.com How do I go about getting the first name and the last name of the current user so I can structure up some variables to get the output I need.
Posted on 08-25-2015 09:31 AM
I ended up asking in the MacAdmin's slack and we found that this would work for this sort of thing
dscl "/Active Directory/FEFCFUL/All Domains" -read /Users/jasontucker EMailAddress | awk '{print $2}'