Is there a package or can somebody give me some pointers on how to
write shell scripts that need to accept AFNI filenames?
In other words, I want to write a shell script that handles AFNI
filename in the way that the AFNI programs do.
The HowTo pages have sample shell scripts that deal with
AFNI datasets. See [
afni.nimh.nih.gov],
and perhaps go to HowTo 05 - group analysis. The "Linux scripts"
under there are good because they deal with multiple subjects.
The most easily forgettable part of doing that is the rule for
view extensions on datasets (orig, acpc and tlrc):
If you supply an input dataset, you must supply the view extension
(because the program is not going to guess). But for any '-prefix'
type option, you do not supply it (because the program will decide
on the view suffix, based on the inputs).
Please let me know if that does not sufficiently address your
questions (if at all :).
- rick