What is the difference between a shell variable that is
exported and the one that is not exported?
Answer Posted / seshadri sethi
The Shell variable which is exported would available to all
the programs outside the Shell also. And the shell variable
which is not exported, would available for that shell or for
the shell program only, in which the variable is declared.
Export LANG=C
will make the variable LANG the global variable, put it into
the global environment. All other processes can use it.
LANG=C
will change the value only in the current script.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
What is the first line in every perl script called?
What is k shell?
What makes c shell a more preferable option than the bourne shell?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
How do I run a script from command prompt?
What lives in a shell?
What is the conditional statement in shell scripting?
How can I send a mail with a compressed file as an attachment?
What is the default ubuntu terminal?
What are the advantages of shell script?
What are the different communication commands available in the shell?
What does $1 mean in bash?
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.
What is meant by $1 in shell script?