Jun 3, 2003 #1 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???
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 #3 SamBones Programmer Aug 8, 2002 3,186 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 Jan 24, 2002 64 CA All suggestions worked. Thanks a million!! Upvote 0 Downvote