• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: truncate the hostname of local computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: truncate the hostname of local computer (From: Martin Orpen <email@hidden>)

  • Prev by Date: Scripting Transmit using applescript in FileMaker
  • Next by Date: File name list order
  • Previous by thread: Re: truncate the hostname of local computer
  • Next by thread: Re: truncate the hostname of local computer
  • Index(es):
    • Date
    • Thread