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.
#!/bin/sh i=2 j=1 while [ $j -le 10 ]; do echo '2 **' $j = $i i=`expr $i '*' 2` j=`expr $j + 1` done