Shell script would look like this:
#! /bin/csh -f
if($#argv) then
set var = $1
<run file2>
else
<default run command>
endif
On the command line:
>> source <script_name> <filename>
Shell script would look like this:
#! /bin/csh -f
if($#argv) then
set var = $1
<run file2>
else
<default run command>
endif
On the command line:
>> source <script_name> <filename>