Jun 14, 2005 #1 msen IS-IT--Management Apr 24, 2001 36 US I want the first 5 characters of the hostname. What command should I use and the syntax. Quick help needed. Thanks, Mandira
I want the first 5 characters of the hostname. What command should I use and the syntax. Quick help needed. Thanks, Mandira
Jun 14, 2005 #3 PHV MIS Nov 8, 2002 53,708 FR In a ksh-like shell: typeset -L5 myHost=$(hostname); echo $myHost Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
In a ksh-like shell: typeset -L5 myHost=$(hostname); echo $myHost Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886