Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to export multiple variables

Status
Not open for further replies.

gotchausa

Programmer
Jan 24, 2002
64
CA
I have a bunch of variables set as:

x=1
y=2
z=3

Then I export each one:

export x
export y
export z

Is there a neater way of doing this???
 
In the Korn shell you can...
[tt]
export X=1
export Y=2
export Z=3
[/tt]
You can both define and export the variable in the same statement.

You can also do something like...
[tt]
export X Y Z
[/tt]
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top