When I created a Mathematica script, I found that all my lines were commented out (when opened with
gedit or any other text editor). So I either need to get rid of the
(**) manually or through a bash script before I run my Mathematica script from a unix terminal.
To create my script, I include the shebang
#!/usr/local/bin/MathematicaScript -script on the first line and then save my file as a
.m package. The resulting file looks something like this:
(* ::Package:: *) (* ::Input:: *) (*#!/usr/local/bin/MathematicaScript-script*) (* ::Input:: *) (**) (*f[x_] := x*)
Why are my lines commented? Is there anything I need to do?