nv-l

Re: Set variable to null

1999-01-15 14:06:17
Subject: Re: Set variable to null
From: Lucy Premus <lpremus AT METLIFE DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Fri, 15 Jan 1999 14:06:17 -0500
Thanks for all the responses.  I did try the unset but it didn't work.
Does the command need to be in quotes?
Also I have another question regarding variables.  If a value in a variable
is preceded by several blanks (ie. '                 TRUE'), how do you
strip off those blanks to be left with only the word TRUE?  I know these
are probably very simple questions, but not for a rookie like me.  I
appreciate all the help.  Thanks................Lucy
---------------------- Forwarded by Lucy Premus/Bsg/MetLife/US on 01/15/99
01:54 PM ---------------------------


Thomas Seidel <seidelt AT DBF.DDB DOT DE> on 01/15/99 11:13:40 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on
      NetView <NV-L AT UCSBVM.ucsb DOT edu>

To:   NV-L AT UCSBVM.ucsb DOT edu
cc:    (bcc: Lucy Premus/Bsg/MetLife/US)
Subject:  Re: Set variable to null




> I'm a true rookie when it comes to writing scripts.  Could somebody
please
> tell me how to set a variable, in a script,  to null, after its been
> previously set to a value?    Thanks.................Lucy

Assuming, you mean scripts for AIX ;-)

'unset variable' removes "variable" from the current environment.
BTW, 'variable=""' sets variable to an empty string.

Thomas
--

Dipl.-Inform. Thomas Seidel
ATM network & UNIX
Die Deutsche Bibliothek
E-Mail:     seidelt AT dbf.ddb DOT de
Voice-Mail: +49-69-1525-1733
Fax-Mail:   +49-69-1525-1799
Snail-Mail: Adickesallee 1, D-60322 Frankfurt/Main

43rd Law of Computing: Anything that can go wro @.#%
fortune: segmentation fault, core dumped

<Prev in Thread] Current Thread [Next in Thread>