Initializing variables in bash

Viewed 23571

I'm migrating windows CMD script to bin/bash on unix. The goal of initial script was to setting up some variables, so after anything run from this cmd window was using that variables. How can I do same in UNIX? Looks like simple

MyVar="value"

doesn't work. It visible only in script itself, not from terminal where it was run.

2 Answers
Related