Hi Feng,
Use double quotes around the expression. Those
allow for variable expansion. e.g.
3dcalc -a ${subj}_dset+orig"[$cur_index]" -expr "$value*step(a-14.3)" ...
If this does not quite answer your question, please
post the command you would like to execute.
- rick