How to make userdefined variables to available for all
other shells?

Answer Posted / asit

for Global declaration::
setenv x 10
setenv str "test"
for local declaration::
set a = 10
set s = "test"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the fastest scripting language?

552


What does echo mean in scripting?

592


What is basename in shell script?

591


What is in a script?

573


How do we delete all blank lines in a file?

579






In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

640


Where is bash history?

508


What does $1 mean in bash?

617


What language is used in terminal?

560


How to check if the previous command was run successfully?

597


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

3608


What is path variable bash?

573


What is sudo command?

555


What are the different types of shell scripting?

540


What is the default ubuntu terminal?

624