Jun 3, 2003 #1 gotchausa Programmer Joined Jan 24, 2002 Messages 64 Location 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???
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???
Jun 3, 2003 #2 pmurray99 Programmer Joined May 20, 2003 Messages 44 Location AU set -a x=1 y=2 z=3 set +a Upvote 0 Downvote
Jun 3, 2003 #3 SamBones Programmer Joined Aug 8, 2002 Messages 3,186 Location US 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. Upvote 0 Downvote
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.
Jun 4, 2003 Thread starter #4 gotchausa Programmer Joined Jan 24, 2002 Messages 64 Location CA All suggestions worked. Thanks a million!! Upvote 0 Downvote