Hello! Simple stupid question..... I cant seem to figure out for the life of me. I want to use the output of a command but trim it before using it as an alias.
If output is: macbookpro123.internet.com
I would like to use this output as an alias without '.internet.com'.
Code:
scutil --get HostName
If output is: macbookpro123.internet.com
I would like to use this output as an alias without '.internet.com'.