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

Give some situations where typing error can destroy a program?

722


How will you pass and access arguments to a script in linux?

582


What are the zombie processes?

565


What is shell company all about?

573


How to print the first array element?

550






What is subshell?

528


What is shell scripting used for?

570


How does shell scripting work?

611


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

695


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?

636


What is an sh file?

555


How to get the first line from a file using just the terminal?

595


What is the first line in every perl script called?

551


write a shell script to check the failed jobs?

3954


Explain about the slow execution speed of shells?

773