How To Unset Variable In Korn Shell

We often have to remove environment variables in unix systems. For KSH becomes as follows;

 jupiter:/optim/prod/server/db_1/bin=> echo $LD_LIBRARY_PATH
/app/oracle/database/netins/product/11.2.0/dbhome_1/lib:/usr/lib
jupiter:/optim/prod/server/db_1/bin=> unset LD_LIBRARY_PATH
jupiter:/optim/prod/server/db_1/bin=> echo $LD_LIBRARY_PATH

HTH – Antonio NAVARRO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s