1

Is it possible to define multiple environment variables at once? Ideally I'd like to paste them all at once instead of setting each one separately.

2
  • Where are you setting these each separately?
    – muru
    Commented Oct 25, 2021 at 10:13
  • Please explain your problem. How are you setting them separately ? And where ?
    – Soren A
    Commented Oct 25, 2021 at 10:14

1 Answer 1

2

Simply, export a="1" b="2" c="..., etc.

Is this really what you want to do?

Perhaps you want to put them in, .bashrc?

https://www.routerhosting.com/knowledge-base/what-is-linux-bashrc-and-how-to-use-it-full-guide/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .