C shell (csh) Fundamentals by Noble Liza & Biswas Sujata

C shell (csh) Fundamentals by Noble Liza & Biswas Sujata

Author:Noble, Liza & Biswas, Sujata
Language: eng
Format: epub, pdf
Published: 2021-11-24T00:00:00+00:00


Existing or Predefined Variables

The predefined variables are either shell (local) or environment (global) variables.

In C shell, the shell variable is set using the set command:

You simply assign a value to a variable, in this case, it is y and then check its value.

$ set y = 100

$ echo $y

100

If the value has a space or a special character than can get the shell confused, you must use double quotes. The dollar sign is needed before the variable to see its value using the echo command.

$ set x = "Hello World"

$ echo $x

Hello World



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.