Re: truncate the hostname of local computer
Re: truncate the hostname of local computer
- Subject: Re: truncate the hostname of local computer
- From: Steve Ingram <email@hidden>
- Date: Fri, 10 Dec 2004 08:52:35 -0800
On Dec 10, 2004, at 12:54 AM, Martin Orpen wrote:
As you are already using the shell you can pipe the result to cut:
/bin/hostname | cut -d. -f1
So that you do it all in one line.
Although I haven't tried the other excellent suggestions, I did the
above first and got the result I was hoping for.
Thanks to everyone for the quick and helpful responses.
Steve Ingram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden