1832586 Members
2779 Online
110043 Solutions
New Discussion

parameter need to unset

 
SOLVED
Go to solution
himacs
Super Advisor

parameter need to unset

Hi Admins,

i have exported DATE to 10-01-28 using below commands.Now m getting below error message while displaying $DATE.

$DATE
sh: 10-01-28: not found.

Now i want to revoke the thing.I should get below message like other server.

sh: DATE: Parameter not set.

Please suggest on how to revoke..

Regards
himacs
7 REPLIES 7
Jupinder Bedi
Respected Contributor

Re: parameter need to unset

here is the syntax of date command

date MMDDhhmmCCYY

where MM=two digit MONTH
DD=two digit DAY
hh=two digit MILITARY time (1pm = 13)
mm=two digit minute
CC=two digit CENTURY (20 or possibly 19)
YY=two digit YEAR

so you need to give as follows

date 0128hhmm2010


Good luck
All things excellent are as difficult as they are rare
himacs
Super Advisor

Re: parameter need to unset

Hi Jupinder,

Thanks for the reply which is informative.But i don want to set value to DATE.I want to revoke/remove the value which i had already set.Is there any command to remove the value of a variable?

Regards
himacs
Jupinder Bedi
Respected Contributor
Solution

Re: parameter need to unset

unset is command for this

# unset Variable_name

Good luck
All things excellent are as difficult as they are rare
himacs
Super Advisor

Re: parameter need to unset

HI Jupinder,

Thanks for the reply.Full points. :)

Regards
himacs
Steven Schweda
Honored Contributor

Re: parameter need to unset

For info on shell variables, try
man

Look for "parameter" or "variable".

Re: parameter need to unset

>> Now m getting below error message while
>> displaying $DATE.
>>
>> $DATE
>> sh: 10-01-28: not found.

Maybe

echo $DATE

is what you should have been doing

HTH

Duncan

I am an HPE Employee
Accept or Kudo
himacs
Super Advisor

Re: parameter need to unset

Hi,

Thanks to all who responded to my query.

M closing this thread

Regards
Pavan