Setting local environment variables
You can set your own environment variables directly from the bash shell.
Once you start a bash shell (or spawn a shell script), you’re allowed to create local variables that are visible within your shell process. You can assign either a numeric or a string value to an
environment variable by assigning the variable to a value using the equal sign:
root@dell:~# process=testing
root@dell:~# echo $process
testing
root@dell:~# echo $process
testing
Now any time you need to reference the value of the test environment variable, just reference it by the name $process.
Leave a Reply
You must be logged in to post a comment.