Initially, we should get ns or tcl shell installed to work with tcl script.
If you didn't install ns2, click here for the installation procedure. Else, follow the tutorial.
After installing ns-2, type ns in terminal. Then, there appears % symbol, which symbolizes the invokement of tcl shell script.
Note(optional): TCL scripting individually can be practiced with in Linux system with tcl shell scripting.