{" "} Csh Programming Help by Programmers hub
Csh Programming Language
The C shell is a command processor which allows user to type
commands. The c shall can read the commands from the file
known as scripts. C shell consist of the control structure,
shell command, expressions and variables. The first line of
the script shows the language in which the script is written
in Csh scripting the first line should be{" "}
#!/bin/csh
.
{" "}
The script file should be given execute permission with
chmod command.
Programming features
- Control constructs.
- File permissions/existence checking.
- Variable assignment.
- Built-in Variables
Csh Program code Example
{` #!/bin/sh i=2 j=1 while [ $j -le 10 ]; do echo '2 **' $j = $i i=expr $i '*' 2 j=expr $j + 1 done `}
Features of C Shell
- Customizable environment.
- Abbreviate commands.
- History.
- Job control.
- Shell scripting.
- Keyboard shortcuts